File::Find::Rule::Type - rule to match on mime types


File-Find-Rule-Type documentation  | view source Contained in the File-Find-Rule-Type distribution.

Index


NAME

Top

File::Find::Rule::Type - rule to match on mime types

SYNOPSIS

Top

 use File::Find::Rule::Type;
 my @images = find( file => type => 'image/*', in => '.' );

DESCRIPTION

Top

File::Find::Rule::Type allows you to build Find::File::Rule searches that are limited by MIME type, using the File::Type module. Text::Glob is used so that the pattern may be a globbing pattern.

->type( @patterns )

Match only things with the mime types specified by @patterns. The specification can be a glob pattern, as provided by Text::Glob.

AUTHOR

Top

Paul Mison <cpan@husk.org>. Shamelessly based on Richard Clamp's File::Find::Rule::MMagic, itself an idea of Mark Fowler.

COPYRIGHT

Top

SEE ALSO

Top

File::Find::Rule, Text::Glob, File::Type, Find::File::Rule::MMagic


File-Find-Rule-Type documentation  | view source Contained in the File-Find-Rule-Type distribution.