Skip to content
Discussion options

You must be logged in to vote

The answer is simple. The RecursiveDirectoryIterator does what it says on the can and iterates files and subdirectories over a directory structure however deep it goes which can be very deep indeed.

What you need to do is to find an alternative way of finding what you are looking for i.e. by narrowing down the scope of the RecursiveDirectoryIterator or by maintaining an index of where the file you want is located.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crynobone
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants