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

Method writeFile

packages/shell/src/tests/memory.test.ts:839–844  ·  view source on GitHub ↗
(path: string, content: string)

Source from the content-addressed store, hash-verified

837 }
838
839 async writeFile(path: string, content: string) {
840 if (path === this.failPath) {
841 throw new Error(`simulated write failure: ${path}`);
842 }
843 return this.inner.writeFile(path, content);
844 }
845
846 async writeFileBytes(path: string, content: Uint8Array) {
847 if (path === this.failPath) {

Callers

nothing calls this directly

Calls 1

writeFileMethod · 0.65

Tested by

no test coverage detected