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

Method writeFileBytes

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

Source from the content-addressed store, hash-verified

844 }
845
846 async writeFileBytes(path: string, content: Uint8Array) {
847 if (path === this.failPath) {
848 throw new Error(`simulated write failure: ${path}`);
849 }
850 return this.inner.writeFileBytes(path, content);
851 }
852
853 async appendFile(path: string, content: string | Uint8Array) {
854 return this.inner.appendFile(path, content);

Callers

nothing calls this directly

Calls 1

writeFileBytesMethod · 0.65

Tested by

no test coverage detected