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

Function missingPath

packages/computer/src/backends/worker-shell/adapter.ts:263–271  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

261}
262
263function missingPath(path: string): Error & { code: string; path: string } {
264 const error = new Error(`ENOENT: no such file or directory, stat '${path}'`) as Error & {
265 code: string;
266 path: string;
267 };
268 error.code = "ENOENT";
269 error.path = path;
270 return error;
271}
272
273function mapStat(s: WorkspaceStatResult): FsStat {
274 return {

Callers 2

statMethod · 0.85
lstatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected