Welcome to the Monastery | |
PerlMonks |
Re: POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linuxby isync (Hermit) |
on Oct 05, 2009 at 20:13 UTC ( [id://799338]=note: print w/replies, xml ) | Need Help?? |
Slap on the forehead!!
This monk begs your pardon... I've found the cause for this strange behavior, the issue that the "dir-test" broke when running on Debian - this line: An old dirty hack more down my code, where I forgot about it. A line which in a stupid way testes against the two Win32-cases of dir/file... Works on Windows, but can't handle the richer responses from the Debian platform fs. Thank you very much for the lecture everyone. And for the monks who feel I wasted their time: they might take comfort from the fact that I, while this thread grew, went through possibly every iteration of oct(), hex(), sprintf("%5o",$mode), $isdir =~ /^40/, there is...
In Section
Seekers of Perl Wisdom
|
|