createDirectory

abstract fun createDirectory(dir: Path, mustCreate: Boolean = false)

It will make sure the given dir gets created on the file system

Parameters

mustCreate

whether it is certain that dir doesn't exist and will need to be created