יובל קוג'מן (Yuval Kogman) > Data-Stream-Bulk-0.07 > Data::Stream::Bulk::Path::Class

Download:
Data-Stream-Bulk-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: Data-Stream-Bulk-0.11

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( ... ),
        );

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.

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).

METHODS ^

is_done

Returns true when no more files are left to iterate.

next

Returns the next chunk of Path::Class objects

syntax highlighting: