Type Alias ReadDir

ReadDir: ((path: PathLike) => Promise<string[]>)

Read the contents of a directory.

Type declaration

    • (path): Promise<string[]>
    • Parameters

      • path: PathLike

        The path to the directory.

      Returns Promise<string[]>

      The names of the files and directories in the directory.