Subject: | Fails with a message about lstat |
When using the module on MacOSX 10.7.5, I get the following message:
The stat preceding -l _ wasn't an lstat at
/usr/local/lib/perl5/site_perl/5.16.1/Directory/Iterator/PP.pm line 42.
The offending code is:
my $path = File::Spec->join("$self->{dir}", $de);
if ( -d $path and ! -l _) {
If I change this to:
my $path = File::Spec->join("$self->{dir}", $de);
return undef unless lstat($path);
if ( -d _ and ! -l _) {
Then everything runs fine. Not sure if that's the best/right fix, but hey, it works for me :-)
Cheers,
Neil