Fix issue in file.directory with file.stats return data