> What it means is that you can't write a naive recursive tree traversal program
> when working with directories. (Eg. I want to write a PHP program that
> gives me a flat alphabetic index for an entire web site.)
>
> Any idea about how to build a hash of i-nodes so that you traverse a cycle in
> the directory structure one-and-only one time?
>
ls -l makes it pretty ovious what directories are symbolic links.
lrwxrwxrwx 1 jd jd 15 Feb 19 16:41 maildir -> /var/spool/mail
^
|
Also look at the is_link function in php:
http://us4.php.net/manual/en/function.is-link.php
JD
--
JD Austin IV
Cell: 480.344.2640
Twin Geckos Technology Services
http://www.twingeckos.com
"Any sufficiently advanced technology is indistinguishable from magic."