note 75421 deleted from function.scandir by danbrown
| From: | danbrown@php.net | Date: | Thu, 28 Jan 2010 14:13:59 +0000 |
| Subject: | note 75421 deleted from function.scandir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165443@lists.php.net to get a copy of this message | ||
Note Submitter: Edwin at NOSPAM dot example dot com
----
Aryel wrote a function called php4_scandir which works only if the is_dir function is called with
the complete path. Otherwise the function will only work within the current working directory. So
changing is_dir($file) to is_dir("$dir/$file") will work.
I believe that the test on skipDots should be negated to get the desired effect.