dirent.name


fs.Dirent 对象引用的文件名。 该值的类型由传给 fs.readdir()fs.readdirSync()options.encoding 决定。

The file name that this fs.Dirent object refers to. The type of this value is determined by the options.encoding passed to fs.readdir() or fs.readdirSync().