MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isFileNotFoundCause

Function isFileNotFoundCause

packages/plugins/file-secrets/src/index.ts:100–101  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

98// ---------------------------------------------------------------------------
99
100const isFileNotFoundCause = (cause: unknown): cause is NodeJS.ErrnoException =>
101 typeof cause === "object" && cause !== null && "code" in cause && cause.code === "ENOENT";
102
103const toStorageError =
104 (message: string) =>

Callers 1

readAuthFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected