Closed
Description
The commit cba206a removes the RecursiveDirectoryIterator check and only does the FilesystemIterator check in FilterIterator
in the rewind
method
This breaks file listing on ftp connections and probably all non Filesystem listings.
- if ($innerIterator instanceof RecursiveDirectoryIterator) {
- if ($innerIterator->isRewindable()) {
- $innerIterator->next();
- $innerIterator->rewind();
- }
- } elseif ($iterator->getInnerIterator() instanceof \FilesystemIterator) {
- $iterator->getInnerIterator()->next();
- $iterator->getInnerIterator()->rewind();
+ if ($innerIterator instanceof \FilesystemIterator) {
+ $innerIterator->next();
+ $innerIterator->rewind();
Solution would be revert this part of the commit.