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

Function stat

packages/computer/src/workspace.ts:1184–1192  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

1182 await fs.mkdir(path, opts);
1183 },
1184 async stat(path) {
1185 try {
1186 const stat = await fs.stat(path);
1187 return toThinkFileInfo({ ...stat, path, name: basename(path) });
1188 } catch (err) {
1189 if (isEnoent(err)) return null;
1190 throw err;
1191 }
1192 },
1193 };
1194}
1195

Callers 1

existsFunction · 0.50

Calls 4

toThinkFileInfoFunction · 0.85
basenameFunction · 0.70
isEnoentFunction · 0.70
statMethod · 0.65

Tested by

no test coverage detected