MCPcopy
hub / github.com/jvilk/BrowserFS / readdir

Method readdir

src/core/file_system.ts:178–178  ·  view source on GitHub ↗

* **Core**: 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 `'..'`.

(p: string, cb: BFSCallback<string[]>)

Source from the content-addressed store, hash-verified

176 * the names of the files in the directory excluding `'.'` and `'..'`.
177 */
178 readdir(p: string, cb: BFSCallback<string[]>): void;
179 /**
180 * **Core**: Synchronous `readdir`. Reads the contents of a directory.
181 */

Callers 15

emptyDirFunction · 0.65
nop.jsFile · 0.65
bad_lookup.jsFile · 0.65
readdir_empty.jsFile · 0.65
___syscall220Function · 0.65
readdir.jsFile · 0.65
___syscall220Function · 0.65
files.jsFile · 0.65
mounting.tsFile · 0.65
check_directoryFunction · 0.65
process_directoryFunction · 0.65
readdir.tsFile · 0.65

Implementers 10

LockedFSsrc/generic/locked_fs.ts
MountableFileSystemsrc/backend/MountableFileSystem.ts
WorkerFSsrc/backend/WorkerFS.ts
IsoFSsrc/backend/IsoFS.ts
UnlockedOverlayFSsrc/backend/OverlayFS.ts
FolderAdaptersrc/backend/FolderAdapter.ts
ZipFSsrc/backend/ZipFS.ts
XmlHttpRequestsrc/backend/XmlHttpRequest.ts
AsyncMirrorsrc/backend/AsyncMirror.ts
DropboxFileSystemsrc/backend/Dropbox.ts

Calls

no outgoing calls

Tested by

no test coverage detected