MCPcopy Create free account
hub / github.com/Noumena-Network/code / fileExists

Function fileExists

src/cli/up.ts:30–40  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

28}
29
30async function fileExists(path: string): Promise<boolean> {
31 try {
32 await access(path)
33 return true
34 } catch (error) {
35 if (isENOENT(error)) {
36 return false
37 }
38 throw error
39 }
40}
41
42async function findNearestInstructionFile(startDir: string): Promise<string | null> {
43 let currentDir = startDir

Callers 1

Calls 1

isENOENTFunction · 0.85

Tested by

no test coverage detected