Recursively read directories and selectively get contents
<p>I'm trying to figure out the best way to pull out the contents of all directories called "thumbs" from within a parent directory. It looks like using DirectoryIterator is a better approach than scandir, although I'm not 100% sure. I'm basically trying to grab all thumbnails from within a gallery, so I want to ignore any directories which aren't named "thumbs". Can anyone advise the best way to go about this? Many thanks</p>
