createDirectory

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

Creates a directory at the path identified by dir.

Parameters

mustCreate

true to throw an IOException if the directory already exists.

Throws

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.

actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)