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

Method stat

packages/shell/src/workspace.ts:75–81  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

73 }
74
75 async stat(path: string): Promise<FsStat> {
76 const s = await this.ws.stat(path);
77 if (!s) {
78 throw enoent(path);
79 }
80 return fromWorkspaceStat(s);
81 }
82
83 async lstat(path: string): Promise<FsStat> {
84 const s = await this.ws.lstat(path);

Callers

nothing calls this directly

Calls 3

enoentFunction · 0.85
fromWorkspaceStatFunction · 0.85
statMethod · 0.65

Tested by

no test coverage detected