Protected
The file name that this fs.Dirent object refers to. The type of this value is determined by the options.encoding passed to readdir or readdirSync.
fs.Dirent
options.encoding
v10.10.0
The base path that this fs.Dirent object refers to.
v20.12.0
Returns true if the fs.Dirent object describes a block device.
true
Returns true if the fs.Dirent object describes a character device.
Returns true if the fs.Dirent object describes a file system directory.
Returns true if the fs.Dirent object describes a first-in-first-out (FIFO) pipe.
Returns true if the fs.Dirent object describes a regular file.
Returns true if the fs.Dirent object describes a socket.
Returns true if the fs.Dirent object describes a symbolic link.
The file name that this
fs.Dirent
object refers to. The type of this value is determined by theoptions.encoding
passed to readdir or readdirSync.