Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[osutils] refactor with unlink/rmdir instead of rm

  • Loading branch information...
commit ddd6fb6d2ae278fad1137cbab974bd89eee91ec8 1 parent 3e77d40
@fperrad fperrad authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 runtime/parrot/library/osutils.pir
View
6 runtime/parrot/library/osutils.pir
@@ -489,7 +489,7 @@ will not affect the file that it points to.
new $P0, 'OS'
push_eh _handler
- $P0.'rm'(filename)
+ $P0.'unlink'(filename)
pop_eh
L1:
.return ()
@@ -576,12 +576,12 @@ be verbose. If given, the string I<rmtree C<path>> will be displayed.
rmtree($S1)
goto L3
L5:
- $P0.'rm'($S1)
+ $P0.'unlink'($S1)
goto L3
L4:
push_eh _handler
$S1 = path
- $P0.'rm'($S1)
+ $P0.'rmdir'($S1)
pop_eh
L1:
.return ()
Please sign in to comment.
Something went wrong with that request. Please try again.