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

Function isFile

packages/kaos/src/environment.ts:246–253  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

244 const platform = process.platform;
245 const env = process.env as Record<string, string | undefined>;
246 const isFile = async (path: string): Promise<boolean> => {
247 try {
248 await access(path, fsConstants.F_OK);
249 return true;
250 } catch {
251 return false;
252 }
253 };
254 detectedEnvironment = detectEnvironment({
255 platform,
256 arch: process.arch,

Callers 1

findExecutablesOnPathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected