(file: string)
| 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 |