Function
notFound
(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)) |
Tested by
no test coverage detected