> On 23 Jun 2015, at 15:37, Rob Hoelz (via RT) <perl6-bugs-follo...@perl.org> 
> wrote:
> 
> # New Ticket Created by  Rob Hoelz 
> # Please include the string:  [perl #125463]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=125463 >
> 
> 
> Unlinking a non-existent file should fail() rather than return True.

To expand on this:

it appears that on MoarVM nqp::unlink returns the filename regardless of 
whether successful or not.  On the JVM, it appears to return 0 for success, and 
-2 for non-existing file, and throws an exception if it could not remove the 
file for some reason.  It also seems capable of removing empty directories on 
the JVM (on MoarVM it fails with an exception).



Liz

Reply via email to