writeFile

open suspend override fun writeFile(path: String, data: ByteArray)

Deprecated

Use write() instead

Replace with

write(path, data, WriteType.OVERWRITE)

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