writeFile

abstract suspend fun writeFile(path: String, data: ByteArray)

Write the contents of a file. File will be created if it doesn't exist. Existing files will be overwritten.

Parameters

path

fully qualified path encoded specifically to the target platform's filesystem

data

the file contents to write to disk