Documentation for method mkdir
Documentation for method mkdir, assembled from the following types:
method mkdir(IO::Path: Int() = 0o777 --> IO::Path)sub mkdir( IO() , Int() = 0o777 --> IO::Path)
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.