MCPcopy
hub / github.com/claude-code-best/claude-code / isENOENT

Function isENOENT

src/utils/errors.ts:139–141  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

137 * Replaces `(e as NodeJS.ErrnoException).code === 'ENOENT'`.
138 */
139export function isENOENT(e: unknown): boolean {
140 return getErrnoCode(e) === 'ENOENT'
141}
142
143/**
144 * Extract the errno path (the filesystem path that triggered the error)

Callers 15

errors.test.tsFile · 0.90
validateInputFunction · 0.85
validateInputFunction · 0.85
callFunction · 0.85
normalizeFileEditInputFunction · 0.85
validateInputFunction · 0.85
readFileForEditFunction · 0.85
validateInputFunction · 0.85
callFunction · 0.85
applySedEditFunction · 0.85
validateInputFunction · 0.85

Calls 1

getErrnoCodeFunction · 0.85

Tested by

no test coverage detected