View Single Post
Old 06-03-2010, 05:07 AM   #1 (permalink)
Killswitch
The Contributor
 
Join Date: Feb 2007
Posts: 64
Thanks: 9
Killswitch is on a distinguished road
Default Iterating over directories only

I have seen many scripts that recurse over directories listing files, but what I am trying to do, with no success, is list the directories only.

It doesn't help that the directory I am trying to list all directories of is quite large, but it's what I need to do :(

Can anyone help me figure out how to do this? I figured using DirectoryIterator would probably be the best option, but documentation explaining it is incredibly scarce, and not many user submitted examples.

I have tried doing this the old fashion way reading a directory and recursively listing only those that are directories, but it times out.
Killswitch is offline  
Reply With Quote