View Single Post
Old 06-03-2010, 06:46 PM   #5 (permalink)
Killswitch
The Contributor
 
Join Date: Feb 2007
Posts: 64
Thanks: 9
Killswitch is on a distinguished road
Default

Thanks, I've been using directory iterator and iterator iterator, but the problem I believe is with Windows ( I just installed Windows two days ago, darn it).

If I use getType to print what each entry is, I get a massive list of nothing but file, with the last entry being null. No dir listed anywhere.

Also, if I use isDir over the iteration, I am simply returned null. I am making sure to continue the iteration as well.

I think it just boils down to being a Windows based issue.

Thanks for your help all. Incase anyone was wondering, this is how it's being used.

Code:
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)) as $item) {
     echo $item->getType();
}
Using that, I am simply listed 'file' a few thousand times :)
Killswitch is offline  
Reply With Quote