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: V_Context
    • 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: V_Context
    • 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: V_Context
    • path: PathLike
    • options: { withFileTypes: true }
    • cb: Callback<[Dirent[]]>

    Returns void