We should add the FOLLOW_SYMLINKS flag to the RecursiveDirectoryIterator
I guess it is safe to assume that anyone using symlinks will not produce endless loops, so I agree.
Will $iterator->setMaxDepth(2); help avoiding endless loops, because that is already in place. But maybe it's used after the file list is gather.
Anyway I'm fine with this as well
I guess it will help.