MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isPathMissing

Function isPathMissing

packages/agent-core/src/mcp/config-loader.ts:148–151  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

146}
147
148function isPathMissing(error: unknown): boolean {
149 const code = getErrorCode(error);
150 return code === 'ENOENT' || code === 'ENOTDIR';
151}
152
153function getErrorCode(error: unknown): unknown {
154 if (typeof error !== 'object' || error === null || !('code' in error)) return undefined;

Callers 1

pathExistsFunction · 0.70

Calls 1

getErrorCodeFunction · 0.70

Tested by

no test coverage detected