File::Find::Rule::LibMagic - rule to match on file types or mime types
use File::Find::Rule::LibMagic; my @executables = find( file => magic => '*executable*', in => $searchdir ); my @images = find( file => mime => 'image/*', in => $homepagebase );
File::Find::Rule::LibMagic extends File::Find::Rule by matching files depending on their magic file type or MIME type delivered through File::LibMagic from file(1) UNIX command.
file(1)
Every UNIX user (or users of unix-like systems) knows the file(1) command. With this module files can be found depending on their file type from magic database or their MIME type.
It conflicts with File::Find::Rule::MMagic.
This module doesn't export any function. The provided functionality is called by File::Find::Rule according to the matching rules.
Accepts a list of strings or regular expressions which are approved to match the result of File::LibMagic/checktype_filename.
Accepts a list of strings or regular expressions which are approved to match the result of File::LibMagic/describe_filename.
Jens Rehsack, <rehsack at cpan.org>
<rehsack at cpan.org>
Please report any bugs or feature requests to bug-file-find-rule-libmagic at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Find-Rule-LibMagic. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-file-find-rule-libmagic at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc File::Find::Rule::LibMagic
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-Find-Rule-LibMagic
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/File-Find-Rule-LibMagic
CPAN Ratings
http://cpanratings.perl.org/d/File-Find-Rule-LibMagic
Search CPAN
http://search.cpan.org/dist/File-Find-Rule-LibMagic/
Copyright 2010 Jens Rehsack.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
2 POD Errors
The following errors were encountered while parsing the POD:
alternative text 'File::LibMagic/checktype_filename' contains non-escaped | or /
alternative text 'File::LibMagic/describe_filename' contains non-escaped | or /
To install File::Find::Rule::LibMagic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Find::Rule::LibMagic
CPAN shell
perl -MCPAN -e shell install File::Find::Rule::LibMagic
For more information on module installation, please visit the detailed CPAN module installation guide.