(path: string, file: File)
| 471 | } |
| 472 | |
| 473 | const defaultWriteFile = (path: string, file: File) => |
| 474 | Effect.flatMap( |
| 475 | FileSystem.FileSystem, |
| 476 | (fs) => |
| 477 | Effect.mapError( |
| 478 | Stream.run(file.content, fs.sink(path)), |
| 479 | (cause) => new MultipartError({ reason: "InternalError", cause }) |
| 480 | ) |
| 481 | ) |
| 482 | |
| 483 | /** |
| 484 | * @since 1.0.0 |