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

Method writeFileBytes

packages/shell/src/fs/interface.ts:56–56  ·  view source on GitHub ↗
(path: string, content: Uint8Array)

Source from the content-addressed store, hash-verified

54 readFileBytes(path: string): Promise<Uint8Array>;
55 writeFile(path: string, content: string): Promise<void>;
56 writeFileBytes(path: string, content: Uint8Array): Promise<void>;
57 appendFile(path: string, content: string | Uint8Array): Promise<void>;
58 exists(path: string): Promise<boolean>;
59 /** Follows symlinks. Throws ENOENT if path does not exist. */

Callers 3

writeFileFunction · 0.65
writeFileBytesMethod · 0.65
writeBytesMethod · 0.65

Implementers 2

WorkspaceFileSystempackages/shell/src/workspace.ts
InMemoryFspackages/shell/src/fs/in-memory-fs.ts

Calls

no outgoing calls

Tested by 1

writeFileBytesMethod · 0.52