makeDir

object makeDir extends Path => Unit

Create a single directory at the specified path. Optionally takes in a PermSet to specify the filesystem permissions of the created directory.

Errors out if the directory already exists, or if the parent directory of the specified path does not exist. To automatically create enclosing directories and ignore the destination if it already exists, using os.makeDir.all

trait Path => Unit
class Object
trait Matchable
class Any
makeDir.type

Type members

Classlikes

object all extends Path => Unit

Similar to os.makeDir, but automatically creates any necessary enclosing directories if they do not exist, and does not raise an error if the destination path already containts a directory

Similar to os.makeDir, but automatically creates any necessary enclosing directories if they do not exist, and does not raise an error if the destination path already containts a directory

Value members

Concrete methods

def apply(path: Path): Unit
def apply(path: Path, perms: PermSet): Unit

Inherited methods

@unspecialized
def andThen[A](g: Unit => A): Path => A
Inherited from:
Function1
@unspecialized
def compose[A](g: A => Path): A => Unit
Inherited from:
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1