maybeCreateFolder

fun File.maybeCreateFolder(clearIfExists: Boolean = false): File

Create a new folder if it does not exist.

Throws

if folder does not exist after creating it.