MCPcopy
hub / github.com/anomalyco/opencode / exists

Function exists

packages/core/test/tool-apply-patch.test.ts:123–129  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

121})
122
123const exists = (target: string) =>
124 Effect.promise(() =>
125 fs.stat(target).then(
126 () => true,
127 () => false,
128 ),
129 )
130const it = testEffect(Layer.empty)
131
132describe("ApplyPatchTool", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected