ZenFS
    Preparing search index...

    Function readdir

    • Asynchronous readdir. Reads the contents of a directory. The callback gets two arguments (err, files) where files is an array of the names of the files in the directory excluding '.' and '..'.

      Parameters

      • this: unknown
      • path: PathLike
      • cb: Callback<[string[]]>

      Returns void

    • Asynchronous readdir. Reads the contents of a directory. The callback gets two arguments (err, files) where files is an array of the names of the files in the directory excluding '.' and '..'.

      Parameters

      • this: unknown
      • path: PathLike
      • options: { withFileTypes?: false }
      • cb: Callback<[string[]]>

      Returns void

    • Asynchronous readdir. Reads the contents of a directory. The callback gets two arguments (err, files) where files is an array of the names of the files in the directory excluding '.' and '..'.

      Parameters

      • this: unknown
      • path: PathLike
      • options: { withFileTypes: true }
      • cb: Callback<[fs.Dirent<string>[]]>

      Returns void