On 2020-04-01 18:59, ToddAndMargo via perl6-users wrote:
Hi All,

In Windows, is there a way to get

    $FileName.IO.e.Bool

to show hidden files?

attrib  C:\pagefile.sys
A  SH  C:\pagefile.sys

raku -e "say 'c:\\pagefile.sys'.IO.e.Bool;"
False

raku -e "say 'c:\pagefile.sys'.IO.e.Bool;"
False

Many thanks,
-T

I just opened:

IO.e.Bool misses hidden files:
https://github.com/rakudo/rakudo/issues/3594

Workaround:
raku -e "my $x='C:\pagefile.sys'; say qqx ( attrib $x ).contains( $x );"
True

And to make it more Windows friendly, where file names
are not case sensitive:

raku -e "my $x='C:\PageFile.SYS'.lc; say qqx ( attrib $x ).lc.contains( $x );"
True

Reply via email to