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

Function defaultIsFile

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

Source from the content-addressed store, hash-verified

442}
443
444async function defaultIsFile(p: string): Promise<boolean> {
445 try {
446 return (await fs.stat(p)).isFile();
447 } catch {
448 return false;
449 }
450}
451
452async function findProjectRoot(workDir: string): Promise<string> {
453 const start = path.resolve(workDir);

Callers

nothing calls this directly

Calls 1

statMethod · 0.65

Tested by

no test coverage detected