Skip to content

Commit 6486f4e

Browse files
authored
Use more elaborate example for mkdir with nested dirs
1 parent 9764f5e commit 6486f4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Type/IO/Path.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,8 @@ the newly created directory on success;
824824
L<fails|/routine/fail> with L<X::IO::Mkdir> if directory cannot be created.
825825
826826
Creates parent directories, as needed (similar to *nix utility C<mkdir> with C<-p> option).
827-
That is, C<mkdir "foo/bar"> will create C<foo> if it does not exist.
827+
That is, C<mkdir "foo/bar/ber/meow"> will create C<foo>, C<foo/bar>, and C<foo/bar/ber>
828+
directories if they do not exist, as well as creating C<foo/bar/ber/meow>.
828829
829830
=head2 routine rmdir
830831

0 commit comments

Comments
 (0)