At 11:32 -0600 2004.05.25, ladh wrote:
Yes, I'm using -l test too, but in my main loop I'm testing for a
file/directory presence and depending on the result I recurs into the
subroutine to check the contents of the sub-directory or examine the
file.  I guess I would have to modify this main loop to do some
special testing when symlink is encountered.

Yes, try -l first, and if it is true, then skip the file (or call readlink() on the file if you want to use some links, but not others, etc.). That should work.

--
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Thanks Chris, readlink() works great since now I can check if the links of those aliases in the corresponding folders are the same.


Lad

Reply via email to