createDirectory

abstract fun createDirectory(dir: Path)(source)

Creates a directory at the path identified by dir.

Throws

IOException

if dir's parent does not exist, is not a directory, or cannot be written. A directory cannot be created if the current process doesn't have access, if there's a loop of symbolic links, or if any name is too long.