createDirectory

common
abstract fun createDirectory(dir: Path)

Creates a directory at the path identified by dir.

Throws

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

js
abstract fun createDirectory(dir: Path)

Throws