Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ exists
Function
exists
packages/opencode/test/fixture/fixture.ts:57–62 ·
view source on GitHub ↗
(dir: string)
Source
from the content-addressed store, hash-verified
55
}
56
57
function
exists(dir: string) {
58
return
fs
59
.stat(dir)
60
.then(() => true)
61
.catch(() => false)
62
}
63
64
function
clean(dir: string) {
65
return
fs.rm(dir, {
Callers
1
stop
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected