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

Method mkdirSync

src/generic/key_value_filesystem.ts:392–396  ·  view source on GitHub ↗
(p: string, mode: number)

Source from the content-addressed store, hash-verified

390 }
391
392 public mkdirSync(p: string, mode: number): void {
393 const tx = this.store.beginTransaction('readwrite'),
394 data = Buffer.from('{}');
395 this.commitNewFile(tx, p, FileType.DIRECTORY, mode, data);
396 }
397
398 public readdirSync(p: string): string[] {
399 const tx = this.store.beginTransaction('readonly');

Callers

nothing calls this directly

Calls 2

commitNewFileMethod · 0.95
beginTransactionMethod · 0.65

Tested by

no test coverage detected