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

Function stat

packages/computer/src/tools/ai.test.ts:68–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 const content = options.content ?? "";
67 return {
68 async stat() {
69 if (options.statError) throw options.statError;
70 return {
71 size: options.size ?? bytes(content).byteLength,
72 mtime: 1,
73 mode: options.mode,
74 };
75 },
76 async readAll() {
77 if (options.readError) throw options.readError;
78 return bytes(content);

Callers

nothing calls this directly

Calls 1

bytesFunction · 0.70

Tested by

no test coverage detected