MCPcopy Create free account
hub / github.com/cloudflare/computer / writeFile

Method writeFile

packages/computer/src/stub.ts:226–237  ·  view source on GitHub ↗
(
    path: string,
    content: WriteFileContent,
    options: WriteFileOptions = {},
  )

Source from the content-addressed store, hash-verified

224 // --- Mutations ---------------------------------------------------
225
226 writeFile(
227 path: string,
228 content: WriteFileContent,
229 options: WriteFileOptions = {},
230 ): Promise<void> {
231 return withSpan(
232 this.#ws.observer,
233 "workspace.fs.writeFile",
234 { "workspace.fs.path": path },
235 () => this.#ws.fs.writeFile(path, content, options),
236 );
237 }
238
239 mkdir(path: string, options: MkdirOptions = {}): Promise<void> {
240 return withSpan(

Callers

nothing calls this directly

Calls 2

withSpanFunction · 0.85
writeFileMethod · 0.65

Tested by

no test coverage detected