MCPcopy Index your code
hub / github.com/jvilk/BrowserFS / readdir

Method readdir

src/backend/Dropbox.ts:641–649  ·  view source on GitHub ↗

* Get the names of the files in a directory

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

Source from the content-addressed store, hash-verified

639 * Get the names of the files in a directory
640 */
641 public readdir(path: string, cb: BFSCallback<string[]>): void {
642 this._client.readdir(path, (error, files) => {
643 if (error) {
644 return cb(this.convert(error));
645 } else {
646 return cb(null, files);
647 }
648 });
649 }
650
651 /**
652 * Converts a Dropbox-JS error into a BFS error.

Callers

nothing calls this directly

Calls 3

convertMethod · 0.95
cbFunction · 0.85
readdirMethod · 0.65

Tested by

no test coverage detected