Skip to content

Commit 9131eb7

Browse files
committed
Add mode parameter to mkdir()/.mkdir
1 parent 51bf410 commit 9131eb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S32-setting-library/IO.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ C<False>.
237237
=head2 mkdir()
238238
X<mkdir()>
239239

240-
sub mkdir($dir as IO --> Bool) is export
240+
sub mkdir($dir as IO, $mode = 0o777 --> Bool) is export
241241

242242
Creates the directory as indicated by the positional parameter. Returns
243243
C<True> on success or an appropriate C<Failure>.
@@ -898,7 +898,7 @@ rather than the lines themselves. By default, lines will be returned.
898898
=head3 .mkdir
899899
X<.mkdir>
900900

901-
method mkdir(--> Bool)
901+
method mkdir($mode = 0o777 --> Bool)
902902

903903
Like L</mkdir()>, but with L</.absolute> as the first parameter.
904904

0 commit comments

Comments
 (0)