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

Function pathExists

packages/opencode/src/lsp/server.ts:17–21  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

15import type { RuntimeFlags } from "@/effect/runtime-flags"
16
17const pathExists = async (p: string) =>
18 fs
19 .stat(p)
20 .then(() => true)
21 .catch(() => false)
22const run = (cmd: string[], opts: Process.RunOptions = {}) => Process.run(cmd, { ...opts, nothrow: true })
23const output = (cmd: string[], opts: Process.RunOptions = {}) => Process.text(cmd, { ...opts, nothrow: true })
24

Callers 3

findVscodeRazorExtensionFunction · 0.85
spawnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected