File::Fingerprint - Identify a file by its checksums and other attributes
use File::Fingerprint; my $fingerprint = File::Fingerprint->roll( $file );
Returns the filename of the fingerprinted file. This is the same path passed to roll.
roll
Return the MIME type of the file, as determined by File::MMagic. For instance, text/plain.
text/plain
Returns the basename of the file.
Returns the file extensions as an array reference.
For instance, stable.tar.gz returns [ qw(tar gz) ].
[ qw(tar gz) ]
Returns the file size, in bytes.
Returns that stat buffer. This is the array reference of all of the values returned by stat.
stat
Returns the line count of the file.
Returns the CRC-16 checksum of the file.
Returns the CRC-32 checksum of the file.
This source is in Github
git://github.com/briandfoy/file-fingerprint.git
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Copyright © 2008-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.
To install File::Fingerprint, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Fingerprint
CPAN shell
perl -MCPAN -e shell install File::Fingerprint
For more information on module installation, please visit the detailed CPAN module installation guide.