Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add rmdir. Using unlink to remove a directory is now deprecated, but …
…we'll leave the functionality in there until Rakudo sorts out its issues.
  • Loading branch information
colomon committed Feb 24, 2012
1 parent 02fe910 commit 0874dc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/CORE.setting
Expand Up @@ -3636,6 +3636,10 @@ sub mkdir($filename) is unsafe {
True; # is there a way to actually detect problems with path_mkdir?
}
sub rmdir($filename) is unsafe {
Q:CgOp { (box Int (path_rmdir (obj_getstr {$filename}))) } == 0;
}
sub shell($command) is unsafe {
Q:CgOp { (box Int (command_system (obj_getstr {$command}))) };
}
Expand Down

0 comments on commit 0874dc3

Please sign in to comment.