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

Method mkdir

src/generic/key_value_filesystem.ts:925–929  ·  view source on GitHub ↗
(p: string, mode: number, cb: BFSOneArgCallback)

Source from the content-addressed store, hash-verified

923 }
924
925 public mkdir(p: string, mode: number, cb: BFSOneArgCallback): void {
926 const tx = this.store.beginTransaction('readwrite'),
927 data = Buffer.from('{}');
928 this.commitNewFile(tx, p, FileType.DIRECTORY, mode, data, cb);
929 }
930
931 public readdir(p: string, cb: BFSCallback<string[]>): void {
932 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