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

Function notFound

packages/core/src/location-mutation.ts:86–88  ·  view source on GitHub ↗
(effect: Effect.Effect<A, FSUtil.Error>)

Source from the content-addressed store, hash-verified

84 const locationRoot = yield* fs.realPath(location.directory)
85
86 function notFound<A>(effect: Effect.Effect<A, FSUtil.Error>) {
87 return effect.pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.succeed(undefined)))
88 }
89
90 const resolvePath = Effect.fnUntraced(function* (absolute: string) {
91 const existing = yield* notFound(fs.realPath(absolute))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected