Skip to content

Commit

Permalink
Copy non-specced IO.chmod from b
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Nov 17, 2011
1 parent 90347c1 commit ecc46f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/IO.pm
Expand Up @@ -184,6 +184,13 @@ class IO {
}
$! ?? fail($!) !! True
}

method chmod($mode) {
try {
pir::new__PS('OS').chmod(nqp::unbox_s(~$.path), nqp::unbox_i($mode.Int));
}
$! ?? fail($!) !! True
}
}

sub unlink($path) {
Expand Down

0 comments on commit ecc46f4

Please sign in to comment.