sub mkdir
1 | language documentation Independent routines |
1.1 | (Independent routines) sub mkdir |
2 | class IO::Path |
2.1 | (IO::Path) sub mkdir |
Documentation for sub mkdir
assembled from the following types:
language documentation Independent routines
From Independent routines
(Independent routines) sub mkdir
Defined as:
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.
Also 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 foo/bar/ber/meow
.
class IO::Path
From IO::Path
(IO::Path) sub mkdir
Defined as:
method mkdir(IO::Path: Int() = 0o777 --> IO::Path)
Creates a new directory, including its 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 as well if they do not exist.
Returns the IO::Path object pointing to the newly created directory on success; fails with X::IO::Mkdir if directory cannot be created.
See also mode
for explanation and valid values for $mode
.