Skip to content

[2.0][Finder] Iteration fails with non-rewindable streams #3585

Closed
@igorw

Description

@igorw

The finder docs mention iterating over an FTP stream, like so:

$finder->in('ftp://example.com/pub/');

Turns out, this does not work. It errors out with:

[ErrorException]
Warning: FilesystemIterator::rewind(): stream does not support seeking in foo.php line 42

Other stream wrappers may be affected as well.

Looks like @krachot already mentioned this somewhere a year ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions