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

Function exists

packages/agent-core/src/skill/scanner.ts:463–470  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

461}
462
463async function exists(p: string): Promise<boolean> {
464 try {
465 await fs.stat(p);
466 return true;
467 } catch {
468 return false;
469 }
470}
471
472function resolveConfiguredDir(dir: string, projectRoot: string, userHomeDir: string): string {
473 if (dir === '~') return userHomeDir;

Callers 1

findProjectRootFunction · 0.70

Calls 1

statMethod · 0.65

Tested by

no test coverage detected