DOKK / manpages / debian 12 / libdata-stream-bulk-perl / Data::Stream::Bulk::Path::Class.3pm.en
Data::Stream::Bulk::Path::Class(3pm) User Contributed Perl Documentation Data::Stream::Bulk::Path::Class(3pm)

Data::Stream::Bulk::Path::Class - Path::Class::Dir traversal

version 0.11

        use Data::Stream::Bulk::Path::Class;
        my $dir = Data::Stream::Bulk::Path::Class->new(
                dir => Path::Class::Dir->new( ... ),
        );

This stream produces depth or breadth first traversal order recursion through Path::Class::Dir objects.

Items are read iteratively, and a stack of open directory handles is used to keep track of state.

Defaults to 250.
Chooses between depth first and breadth first traversal order.
If true only Path::Class::File items will be returned in the output streams (no directories).

Returns true when no more files are left to iterate.
Returns the next chunk of Path::Class objects

Yuval Kogman <nothingmuch@woobling.org>

This software is copyright (c) 2012 by Yuval Kogman.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2021-01-01 perl v5.32.0