in reply to Re: Test to see if directories are the same
in thread Test to see if directories are the same
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")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Test to see if directories are the same
by AltBlue (Chaplain) on Jan 18, 2001 at 00:58 UTC | |
|
Re: (tye)Re: Test to see if directories are the same
by lemming (Priest) on Jan 18, 2001 at 00:46 UTC | |
by tye (Sage) on Jan 18, 2001 at 00:54 UTC |