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

Method hashFile

packages/shell/src/memory.ts:376–378  ·  view source on GitHub ↗
(path: string, options?: StateHashOptions)

Source from the content-addressed store, hash-verified

374 }
375
376 async hashFile(path: string, options?: StateHashOptions): Promise<string> {
377 return hashBytes(await this.readFileBytes(path), options);
378 }
379
380 async detectFile(path: string): Promise<StateFileDetection> {
381 return detectFileFromBytes(path, await this.readFileBytes(path));

Callers

nothing calls this directly

Calls 2

readFileBytesMethod · 0.95
hashBytesFunction · 0.90

Tested by

no test coverage detected