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

Function writeFile

packages/computer/src/workspace.ts:1146–1148  ·  view source on GitHub ↗
(path, content)

Source from the content-addressed store, hash-verified

1144 }
1145 },
1146 async writeFile(path, content) {
1147 await fs.writeFile(path, content);
1148 },
1149 async readDir(dir, opts) {
1150 const entries = await fs.readdir(dir);
1151 const offset = opts?.offset ?? 0;

Callers 1

buildTargetFunction · 0.50

Calls 1

writeFileMethod · 0.65

Tested by

no test coverage detected