Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add :createonly to sub copy()
  • Loading branch information
hoelzro committed Aug 28, 2015
1 parent 906ca06 commit 17a7747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/io_operators.pm
Expand Up @@ -238,8 +238,8 @@ sub rename($from, $to, :$SPEC = $*SPEC, :$CWD = $*CWD, :$createonly) {
my $result := $from.IO(:$SPEC,:$CWD).rename($to,:$SPEC,:$CWD,:$createonly);
$result // $result.throw;
}
sub copy($from, $to, :$SPEC = $*SPEC, :$CWD = $*CWD) {
my $result := $from.IO(:$SPEC,:$CWD).copy($to,:$SPEC,:$CWD);
sub copy($from, $to, :$SPEC = $*SPEC, :$CWD = $*CWD, :$createonly) {
my $result := $from.IO(:$SPEC,:$CWD).copy($to,:$SPEC,:$CWD, :$createonly);
$result // $result.throw;
}
sub symlink($target, $name, :$SPEC = $*SPEC, :$CWD = $*CWD) {
Expand Down

0 comments on commit 17a7747

Please sign in to comment.