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

Method readdirSync

src/generic/key_value_filesystem.ts:398–401  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

396 }
397
398 public readdirSync(p: string): string[] {
399 const tx = this.store.beginTransaction('readonly');
400 return Object.keys(this.getDirListing(tx, p, this.findINode(tx, p)));
401 }
402
403 public _syncSync(p: string, data: Buffer, stats: Stats): void {
404 // @todo Ensure mtime updates properly, and use that to determine if a data

Callers 1

rmdirSyncMethod · 0.95

Calls 3

getDirListingMethod · 0.95
findINodeMethod · 0.95
beginTransactionMethod · 0.65

Tested by

no test coverage detected