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

Method statSync

src/generic/key_value_filesystem.ts:356–359  ·  view source on GitHub ↗
(p: string, isLstat: boolean)

Source from the content-addressed store, hash-verified

354 }
355
356 public statSync(p: string, isLstat: boolean): Stats {
357 // Get the inode to the item, convert it into a Stats object.
358 return this.findINode(this.store.beginTransaction('readonly'), p).toStats();
359 }
360
361 public createFileSync(p: string, flag: FileFlag, mode: number): File {
362 const tx = this.store.beginTransaction('readwrite'),

Callers

nothing calls this directly

Calls 3

findINodeMethod · 0.95
toStatsMethod · 0.80
beginTransactionMethod · 0.65

Tested by

no test coverage detected