createAsFileSafely

fun <Error class: unknown class>.createAsFileSafely(default: Boolean = false): Boolean

Extension method to create a file without throwing an exception, except CancellationException to cancel parent jobs.

Return

whether the file could be created.