deleteContents

abstract fun deleteContents(dir: Path, mustExist: Boolean = false)

This will delete recursively the given dir and all its content

Parameters

dir

the directory to be deleted

mustExist

whether it is certain that dir exists before the deletion