MCPcopy Index your code
hub / github.com/anomalyco/opencode / exists

Function exists

packages/desktop/src/main/apps.ts:8–11  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

6const execFilePromise = util.promisify(execFile)
7
8const exists = (path: string) =>
9 access(path)
10 .then(() => true)
11 .catch(() => false)
12
13export function checkAppExists(appName: string) {
14 if (process.platform === "win32") return true

Callers 3

checkMacosAppFunction · 0.70
resolveCmdFunction · 0.70
resolveWindowsAppPathFunction · 0.70

Calls 1

accessFunction · 0.50

Tested by

no test coverage detected