ZenFS
    Preparing search index...

    Function readdir

    • Asynchronous readdir(3) - read a directory.

      Note: The order of entries is not guaranteed

      Parameters

      • this: V_Context
      • path: PathLike

        A path to a file. If a URL is provided, it must use the file: protocol.

      • Optionaloptions:
            | null
            | BufferEncoding
            | ObjectEncodingOptions & { recursive?: boolean; withFileTypes?: false }

        The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8'.

      Returns Promise<string[]>

    • Asynchronous readdir(3) - read a directory.

      Note: The order of entries is not guaranteed

      Parameters

      • this: V_Context
      • path: PathLike

        A path to a file. If a URL is provided, it must use the file: protocol.

      • options: "buffer" | { encoding: "buffer"; recursive?: boolean; withFileTypes?: false }

        The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8'.

      Returns Promise<Buffer<ArrayBufferLike>[]>

    • Asynchronous readdir(3) - read a directory.

      Note: The order of entries is not guaranteed

      Parameters

      • this: V_Context
      • path: PathLike

        A path to a file. If a URL is provided, it must use the file: protocol.

      • Optionaloptions:
            | null
            | BufferEncoding
            | ObjectEncodingOptions & { recursive?: boolean; withFileTypes?: false }

        The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8'.

      Returns Promise<string[] | Buffer<ArrayBufferLike>[]>

    • Asynchronous readdir(3) - read a directory.

      Note: The order of entries is not guaranteed

      Parameters

      • this: V_Context
      • path: PathLike

        A path to a file. If a URL is provided, it must use the file: protocol.

      • options: ObjectEncodingOptions & { recursive?: boolean; withFileTypes: true }

        The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8'.

      Returns Promise<Dirent<string>[]>

    • Asynchronous readdir(3) - read a directory.

      Note: The order of entries is not guaranteed

      Parameters

      • this: V_Context
      • path: PathLike

        A path to a file. If a URL is provided, it must use the file: protocol.

      • options: { encoding: "buffer"; recursive?: boolean; withFileTypes: true }

        The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8'.

      Returns Promise<Dirent<Buffer<ArrayBufferLike>>[]>

    • Asynchronous readdir(3) - read a directory.

      Note: The order of entries is not guaranteed

      Parameters

      • this: V_Context
      • path: PathLike

        A path to a file. If a URL is provided, it must use the file: protocol.

      • Optionaloptions: ReaddirOptions

        The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8'.

      Returns Promise<string[] | Buffer<ArrayBufferLike>[] | Dirent<any>[]>