logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Attributes

       chunk_size
           Defaults to 250.

       depth_first
           Chooses between depth first and breadth first traversal order.

       only_files
           If true only Path::Class::File items will be returned in the output streams (no directories).

Author

       Yuval Kogman <nothingmuch@woobling.org>

Description

       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.

Methods

       is_done
           Returns true when no more files are left to iterate.

       next
           Returns the next chunk of Path::Class objects

Name

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

Synopsis

               use Data::Stream::Bulk::Path::Class;

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

Version

       version 0.11

See Also