Documentation for method mkdir

Documentation for method mkdir, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) routine mkdir

Defined as:

method mkdir(IO::Path:D: Int() $mode = 0o777 --> IO::Path:D)
sub mkdir(   IO() $pathInt() $mode = 0o777 --> IO::Path:D)

Creates a new directory. See mode for explanation and valid values for $mode. Returns the IO::Path object pointing to the newly created directory on success; fails with X::IO::Mkdir if directory cannot be created.

Creates parent directories, as needed. That is, mkdir "foo/bar" will create foo if it does not exist.