note 28591 deleted from function.is-dir by sniper
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 00:35:06 +0000 |
| Subject: | note 28591 deleted from function.is-dir by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58447@lists.php.net to get a copy of this message | ||
Note Submitter: chsh1ca@yahoo.ca
----
It should be clarified that is_dir follows symlinks, so if you need to filter out symlinked
directories, you have to check to see if it's a symlink explicitly.
Something along the lines of
if (is_dir($dir) && !is_link($dir))
is needed.