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

Method readdirWithFileTypes

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

Source from the content-addressed store, hash-verified

171 }
172
173 async readdirWithFileTypes(path: string): Promise<StateDirent[]> {
174 const entries = await this.fs.readdirWithFileTypes(path);
175 return sortDirents(entries.map((e) => stateDirent(e.name, e.type)));
176 }
177
178 async find(
179 path: string,

Callers

nothing calls this directly

Calls 3

stateDirentFunction · 0.90
sortDirentsFunction · 0.85
readdirWithFileTypesMethod · 0.65

Tested by

no test coverage detected