Note that this doesn't work in the face of symbolic links (or in the face of file systems that support hard links to directories better than most Unix file systems do).
Perhaps someone should combine the two sets of tests into one that works lots of places. I'd personally prefer testing for 0 == (stat($d))[1] over trying to hard-code some list of $^O values (or are there file systems where i-node 0 might be a valid directory?).
- tye (but my friends call me "Tye")In reply to (tye)Re: Test to see if directories are the same
by tye
in thread Test to see if directories are the same
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |