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

Method readFileBytes

packages/shell/src/workspace.ts:37–43  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

35 }
36
37 async readFileBytes(path: string): Promise<Uint8Array> {
38 const bytes = await this.ws.readFileBytes(path);
39 if (bytes === null) {
40 throw enoent(path);
41 }
42 return bytes;
43 }
44
45 async writeFile(path: string, content: string): Promise<void> {
46 await this.ws.writeFile(path, content);

Callers

nothing calls this directly

Calls 2

enoentFunction · 0.85
readFileBytesMethod · 0.65

Tested by

no test coverage detected