Skip to content

[Finder] File listing broken on non Filesystem (ftp in my case) due to 2.8.3 changes #18013

Closed
@smurfy

Description

@smurfy

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions