MCPcopy Index your code
hub / github.com/cloudflare/agents / readFile

Method readFile

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

Source from the content-addressed store, hash-verified

51 */
52export interface FileSystem {
53 readFile(path: string): Promise<string>;
54 readFileBytes(path: string): Promise<Uint8Array>;
55 writeFile(path: string, content: string): Promise<void>;
56 writeFileBytes(path: string, content: Uint8Array): Promise<void>;

Callers 8

readFileFunction · 0.65
workers.test.tsFile · 0.65
memory.test.tsFile · 0.65
readFileMethod · 0.65
git.test.tsFile · 0.65
workspace.test.tsFile · 0.65
readFileMethod · 0.65
readMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

readFileMethod · 0.52