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

Function pathExists

packages/agent-core/src/mcp/config-loader.ts:74–82  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

72}
73
74async function pathExists(filePath: string): Promise<boolean> {
75 try {
76 await stat(filePath);
77 return true;
78 } catch (error: unknown) {
79 if (isPathMissing(error)) return false;
80 throw error;
81 }
82}
83
84interface ReadMcpJsonOptions {
85 readonly stdioCwdBase?: string;

Callers 1

findProjectRootFunction · 0.70

Calls 2

isPathMissingFunction · 0.70
statFunction · 0.50

Tested by

no test coverage detected