Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make mkdir() work again
  • Loading branch information
lizmat committed Nov 29, 2014
1 parent fd1ee99 commit c4d1f1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/io_operators.pm
Expand Up @@ -266,10 +266,10 @@ sub rmdir(*@filenames, :$SPEC = $*SPEC, :$CWD = $*CWD) {

proto sub mkdir(|) { * }
multi sub mkdir(Int $mode, *@dirnames, :$SPEC = $*SPEC, :$CWD = $*CWD) {
@dirnames.grep( *.IO(:$SPEC,:$CWD).mkdir($mode) ).eager;
@dirnames.grep( { MAKE-DIR(MAKE-ABSOLUTE-PATH($_,$*CWD),$mode) } ).eager;
}
multi sub mkdir($path, $mode = 0o777, :$SPEC = $*SPEC, :$CWD = $*CWD) {
$path.IO(:$SPEC,:$CWD).mkdir($mode) ?? ($path,) !! ();
MAKE-DIR(MAKE-ABSOLUTE-PATH($path,$*CWD),$mode) ?? ($path,) !! ();
}

sub rename($from, $to, :$SPEC = $*SPEC, :$CWD = $*CWD) {
Expand Down

0 comments on commit c4d1f1f

Please sign in to comment.