File/Stat.pm6
use v6; unit module File::Stat; use File::Stat::Raw; sub stat(Str $path) { my StatStruct $stat = StatStruct.new; my $result = xstat(0, $path, $stat); if $result < 0 { fail 'no such file or directory'; } return $stat; }