MCPcopy Create free account
hub / github.com/NanmiCoder/cc-haha / pathExists

Function pathExists

src/utils/computerUse/pythonBridge.ts:45–52  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

43}
44
45async function pathExists(target: string): Promise<boolean> {
46 try {
47 await access(target)
48 return true
49 } catch {
50 return false
51 }
52}
53
54async function runOrThrow(file: string, args: string[], label: string): Promise<string> {
55 const { code, stdout, stderr } = await execFileNoThrow(file, args, { useCwd: false })

Callers 15

ensureRuntimeFilesFunction · 0.70
ensureBootstrappedFunction · 0.70
createAndSaveSnapshotFunction · 0.50
resolvePluginPathFunction · 0.50
installFromNpmFunction · 0.50
installFromLocalFunction · 0.50
cachePluginFunction · 0.50
loadPluginManifestFunction · 0.50
loadPluginHooksFunction · 0.50
validatePluginPathsFunction · 0.50
createPluginFromPathFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected