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

Function isEnoent

packages/computer/src/workspace.ts:1277–1282  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

1275}
1276
1277function isEnoent(err: unknown): boolean {
1278 if (!err || typeof err !== "object") return false;
1279 const e = err as { code?: string; message?: string };
1280 if (e.code === "ENOENT") return true;
1281 return typeof e.message === "string" && /ENOENT|no such/i.test(e.message);
1282}

Callers 3

readFileFunction · 0.70
readFileBytesFunction · 0.70
statFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected