write

suspend fun write(path: String, data: ByteArray, overwrite: Boolean = false, timeout: Duration? = null)(source)

Create parents and write bounded bytes. Refuse an existing file unless overwrite.