Function readdir

  • Open a directory.

    Parameters

    Returns void

  • Open a directory.

    Parameters

    • path: PathLike

      directory path

    • options: BufferEncoding | {
          encoding: BufferEncoding;
          withFileTypes?: false;
      }

      readdir options {encoding, withFileTypes}

    • callback: ReadDirCallback<string[]>

      callback (err, dir)

    Returns void

  • Open a directory.

    Parameters

    • path: PathLike

      directory path

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

      readdir options {encoding, withFileTypes}

    • callback: ReadDirCallback<Buffer[]>

      callback (err, dir)

    Returns void

  • Open a directory.

    Parameters

    Returns void

  • Open a directory.

    Parameters

    Returns void

  • Open a directory.

    Parameters

    Returns Promise<string[]>

  • Open a directory.

    Parameters

    • path: PathLike

      directory path

    • options: BufferEncoding | {
          encoding: BufferEncoding;
          withFileTypes?: false;
      }

      readdir options {encoding, withFileTypes}

    Returns Promise<string[]>

  • Open a directory.

    Parameters

    • path: PathLike

      directory path

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

      readdir options {encoding, withFileTypes}

    Returns Promise<Buffer[]>

  • Open a directory.

    Parameters

    • path: PathLike

      directory path

    • options: BufferEncoding | ObjectEncodingOptions & {
          withFileTypes?: false;
      }

      readdir options {encoding, withFileTypes}

    Returns Promise<string[]>

  • Open a directory.

    Parameters

    Returns Promise<Dirent[]>

Generated using TypeDoc