Options
All
  • Public
  • Public/Protected
  • All
Menu

Callable

  • readdir(path: PathLike, options: object | BufferEncoding | undefined | null, callback: function): void
  • readdir(path: PathLike, options: object | "buffer", callback: function): void
  • readdir(path: PathLike, options: object | string | undefined | null, callback: function): void
  • readdir(path: PathLike, callback: function): void
  • readdir(path: PathLike, options: object, callback: function): void
  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • options: object | BufferEncoding | undefined | null

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

    • callback: function

    Returns void

  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • options: object | "buffer"

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

    • callback: function

    Returns void

  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • options: object | string | undefined | null

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

    • callback: function
        • Parameters

          Returns void

    Returns void

  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • callback: function

    Returns void

  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • options: object

      If called with withFileTypes: true the result data will be an array of Dirent.

      • Optional encoding?: string | null
      • withFileTypes: true
    • callback: function

    Returns void

Index

Functions

Functions

__promisify__

  • __promisify__(path: PathLike, options?: object | BufferEncoding | null): Promise<string[]>
  • __promisify__(path: PathLike, options: "buffer" | object): Promise<Buffer[]>
  • __promisify__(path: PathLike, options?: object | string | null): Promise<string[] | Buffer[]>
  • __promisify__(path: PathLike, options: object): Promise<Dirent[]>
  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • Optional options: object | BufferEncoding | null

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

    Returns Promise<string[]>

  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • options: "buffer" | object

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

    Returns Promise<Buffer[]>

  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • Optional options: object | string | null

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

    Returns Promise<string[] | Buffer[]>

  • Asynchronous readdir(3) - read a directory.

    Parameters

    • path: PathLike

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

    • options: object

      If called with withFileTypes: true the result data will be an array of Dirent

      • Optional encoding?: string | null
      • withFileTypes: true

    Returns Promise<Dirent[]>

Generated using TypeDoc