Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 875 Bytes

readDir.md

File metadata and controls

30 lines (18 loc) · 875 Bytes

happy-opfsDocs


happy-opfs / readDir

Function: readDir()

function readDir(dirPath, options?): AsyncIOResult<AsyncIterableIterator<ReadDirEntry>>

Reads the contents of a directory at the specified path.

Parameters

Parameter Type Description
dirPath string The path of the directory to read.
options? ReadDirOptions Options of readdir.

Returns

AsyncIOResult<AsyncIterableIterator<ReadDirEntry>>

A promise that resolves to an AsyncIOResult containing an async iterable iterator over the entries of the directory.

Defined in

fs/opfs_core.ts:48