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

Method readDir

examples/assistant/src/server.ts:647–649  ·  view source on GitHub ↗
(path?: string, opts?: Parameters<Workspace["readDir"]>[1])

Source from the content-addressed store, hash-verified

645 }
646
647 async readDir(path?: string, opts?: Parameters<Workspace["readDir"]>[1]) {
648 return (await this.parent()).readDir(path ?? "/", opts);
649 }
650
651 async rm(path: string, opts?: Parameters<Workspace["rm"]>[1]) {
652 return (await this.parent()).rm(path, opts);

Callers

nothing calls this directly

Calls 2

parentMethod · 0.95
readDirMethod · 0.65

Tested by

no test coverage detected