(path: string, file: File)
| 619 | } |
| 620 | |
| 621 | const defaultWriteFile = (path: string, file: File) => |
| 622 | Effect.flatMap( |
| 623 | FileSystem.FileSystem, |
| 624 | (fs) => |
| 625 | Effect.mapError( |
| 626 | Stream.run(file.content, fs.sink(path)), |
| 627 | (cause) => MultipartError.fromReason("InternalError", cause) |
| 628 | ) |
| 629 | ) |
| 630 | |
| 631 | /** |
| 632 | * Runs a channel of byte chunks and collects all output into a single |
nothing calls this directly
no test coverage detected