MCPcopy Index your code
hub / github.com/Sandpack/nodebox-runtime / mkdir

Method mkdir

packages/nodebox/src/modules/fs.ts:147–152  ·  view source on GitHub ↗
(path: string, options?: { recursive?: boolean })

Source from the content-addressed store, hash-verified

145 }
146
147 public async mkdir(path: string, options?: { recursive?: boolean }): Promise<void> {
148 const recursive = !!options?.recursive;
149 await this.channel.send('fs/mkdir', { path, recursive }).catch((error) => {
150 throw new Error(format('Failed to make directory at path "%s"', path), { cause: error });
151 });
152 }
153
154 public async stat(path: string): Promise<IFileStats> {
155 const response = await this.channel.send('fs/stat', { path }).catch((error) => {

Callers 2

runSandpackCDNProxyFunction · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected