- LICENSE AND COPYRIGHT
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 );
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.
<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.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
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:
- Around line 48:
alternative text 'File::LibMagic/checktype_filename' contains non-escaped | or /
- Around line 53:
alternative text 'File::LibMagic/describe_filename' contains non-escaped | or /