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

Method detectFile

packages/shell/src/memory.ts:380–382  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

378 }
379
380 async detectFile(path: string): Promise<StateFileDetection> {
381 return detectFileFromBytes(path, await this.readFileBytes(path));
382 }
383
384 async removeTree(path: string): Promise<void> {
385 await this.fs.rm(path, { recursive: true, force: true });

Callers

nothing calls this directly

Calls 1

readFileBytesMethod · 0.95

Tested by

no test coverage detected