makeDir

os.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

Attributes

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

Members list

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

Attributes

Supertypes
trait Path => Unit
class Object
trait Matchable
class Any
Self type
all.type

Value members

Concrete methods

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

Inherited methods

def andThen[A](g: Unit => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => Path): A => R

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1