MCPcopy Create free account
hub / github.com/anomalyco/opencode / exists

Function exists

packages/core/test/repository-cache.test.ts:111–118  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

109}
110
111function exists(file: string) {
112 return Effect.promise(() =>
113 fs.stat(file).then(
114 () => true,
115 () => false,
116 ),
117 )
118}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected