MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / exists

Function exists

src/tools/frontend/detect-stack.ts:43–45  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

41}
42
43async function exists(p: string): Promise<boolean> {
44 try { await fs.access(p); return true; } catch { return false; }
45}
46
47async function findFile(root: string, names: string[]): Promise<string | null> {
48 for (const name of names) {

Callers 2

findFileFunction · 0.70
detect-stack.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected