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

Function pathExists

packages/agent-core/src/profile/context.ts:170–177  ·  view source on GitHub ↗
(kaos: Kaos, path: string)

Source from the content-addressed store, hash-verified

168}
169
170async function pathExists(kaos: Kaos, path: string): Promise<boolean> {
171 try {
172 await kaos.stat(path);
173 return true;
174 } catch {
175 return false;
176 }
177}
178
179async function isFile(kaos: Kaos, path: string): Promise<boolean> {
180 try {

Callers 1

findProjectRootFunction · 0.70

Calls 1

statMethod · 0.65

Tested by

no test coverage detected