Class Dirent

Implements

  • Dirent

Constructors

Properties

path: string
stats: Stats

Accessors

  • get name(): string
  • 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.

    Returns string

    v10.10.0

  • get parentPath(): string
  • The base path that this fs.Dirent object refers to.

    Returns string

    v20.12.0

Methods

  • Returns true if the fs.Dirent object describes a block device.

    Returns boolean

    v10.10.0

  • Returns true if the fs.Dirent object describes a character device.

    Returns boolean

    v10.10.0

  • Returns true if the fs.Dirent object describes a file system directory.

    Returns boolean

    v10.10.0

  • Returns true if the fs.Dirent object describes a first-in-first-out (FIFO) pipe.

    Returns boolean

    v10.10.0

  • Returns true if the fs.Dirent object describes a regular file.

    Returns boolean

    v10.10.0

  • Returns true if the fs.Dirent object describes a socket.

    Returns boolean

    v10.10.0

  • Returns true if the fs.Dirent object describes a symbolic link.

    Returns boolean

    v10.10.0