Documentation for sub mkdir

Documentation for sub mkdir, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) routine mkdir

multi sub mkdir(Int:D $mode*@dirnames --> List)
multi sub mkdir($path$mode = 0o777 --> Bool)
method    mkdir(IO::Path:D: $mode = 0o777 --> Bool)

Creates one or more directories with the permissions specified as an integer (though still subject to umask).

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

Throws an exception of type X::IO::Mkdir if the directory cannot be created, except for the *@dirnames form, which returns the names of the directories that were successfully created.