develooper Front page | perl.perl6.compiler | Postings from July 2010

[perl #76772] [PATCH] IO::Stat for Rakudo

From:
Tadeusz Sośnierz
Date:
July 28, 2010 10:08
Subject:
[perl #76772] [PATCH] IO::Stat for Rakudo
Message ID:
rt-3.6.HEAD-11314-1280325559-1115.76772-82-0@perl.org
# New Ticket Created by  Tadeusz Sośnierz 
# Please include the string:  [perl #76772]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76772 >


Here's a patch adding an interface to Parrot's stat Opcode in Rakudo.
I've consulted it with Moritz Lenz who also thought it's a nice feature
to have.  Now it's possible to get file information like this:

'filename'.IO.stat.size
'filename'.IO.stat.isdir

...etc, etc.

Some stat features are not working with the current Rakudo for me (e.g.
uid always returns -1, isdev always returns 0) but besides this, which
is some Parrot issue, everything works fine and no spectests are
failing.

Kind Regards,
Ted




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About