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

Method writeFile

packages/dofs/src/fs/filesystem.ts:99–105  ·  view source on GitHub ↗
(
    path: string,
    content: WriteFileContent,
    options: WriteFileOptions = {},
  )

Source from the content-addressed store, hash-verified

97 // --- Mutations ---------------------------------------------------
98
99 writeFile(
100 path: string,
101 content: WriteFileContent,
102 options: WriteFileOptions = {},
103 ): Promise<void> {
104 return writeFile(this.db, path, content, options, this.now);
105 }
106
107 async mkdir(path: string, options: MkdirOptions = {}): Promise<void> {
108 mkdir(this.db, path, options, this.now);

Callers

nothing calls this directly

Calls 1

writeFileFunction · 0.70

Tested by

no test coverage detected