createDirectories

abstract fun createDirectories(dir: Path)

It will create the provided dir in the current file system along with the needed subdirectories if they were not created previously