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 (similar to *nix utility mkdir with -p option). That is, mkdir "foo/bar/ber/meow" will create foo, foo/bar, and foo/bar/ber directories if they do not exist, as well as create foo/bar/ber/meow.