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

Function isFile

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

Source from the content-addressed store, hash-verified

177}
178
179async function isFile(kaos: Kaos, path: string): Promise<boolean> {
180 try {
181 const stat = await kaos.stat(path);
182 return (stat.stMode & S_IFMT) === S_IFREG;
183 } catch {
184 return false;
185 }
186}
187
188function renderAgentFiles(files: readonly AgentFile[]): string {
189 if (files.length === 0) return '';

Callers 1

readAgentFileFunction · 0.70

Calls 1

statMethod · 0.65

Tested by

no test coverage detected