deleteContents
open override fun deleteContents(dir: <Error class: unknown class>, mustExist: Boolean): <Error class: unknown class>
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