MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isMissingPathError

Function isMissingPathError

src/utils.ts:145–148  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

143 * reports ENOENT for both).
144 */
145export function isMissingPathError(err: unknown): boolean {
146 const code = (err as NodeJS.ErrnoException | null)?.code;
147 return code === 'ENOENT' || code === 'ENOTDIR';
148}
149
150/**
151 * Validate that a file path stays within the project root, resolving symlinks.

Callers 3

indexAllMethod · 0.90
indexFileMethod · 0.90
validatePathWithinRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected