MCPcopy
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
57function exists(dir: string) {
58 return fs
59 .stat(dir)
60 .then(() => true)
61 .catch(() => false)
62}
63
64function clean(dir: string) {
65 return fs.rm(dir, {

Callers 1

stopFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected