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