Fixed undefined fileInfoFromStat