createFile

fun createFile(bytes: ByteArray, path: String, vararg subpath: String): RuleResult

Creates a new file at the specified path& returns a result.


fun createFile(bytesCallback: suspend () -> <Error class: unknown class><ByteArray, ActionError>?, path: String, vararg subpath: String): RuleResult

Lazily creates a new file at the specified path if it does not already exist, and returns a result.