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

Function safeStat

packages/core/src/util/effect-flock.ts:108–112  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

106 // -- helpers (close over fs) --
107
108 const safeStat = (file: string) =>
109 fs.stat(file).pipe(
110 Effect.catchIf(isPathGone, () => Effect.void),
111 Effect.orDie,
112 )
113
114 const forceRemove = (target: string) => fs.remove(target, { recursive: true }).pipe(Effect.ignore)
115

Callers 1

effect-flock.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected