ZenFS
    Preparing search index...

    Class Dirent<Name>

    Type Parameters

    • Name extends string | Buffer = string

    Implements

    Index

    Constructors

    • Type Parameters

      • Name extends string | Buffer<ArrayBufferLike> = string

      Parameters

      • path: string
      • stats: InodeLike
      • Optionalencoding: null | "buffer" | BufferEncoding

      Returns Dirent<Name>

    Properties

    encoding?: null | "buffer" | BufferEncoding
    path: string
    stats: InodeLike

    Accessors

    • get name(): Name

      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 Name

      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