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

Function isMissingPathError

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

Source from the content-addressed store, hash-verified

144 * reports ENOENT for both).
145 */
146export function isMissingPathError(err: unknown): boolean {
147 const code = (err as NodeJS.ErrnoException | null)?.code;
148 return code === 'ENOENT' || code === 'ENOTDIR';
149}
150
151/**
152 * 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