← back to roto on ba3a.dev

write

fun write(path: Path, body: (OutputStream) -> Unit)

Creates path's parent folders, then replaces path with what body writes.