-
-
14 May 2018 13:31:25 UTC
- Distribution: File-Fingerprint
- Module version: 0.102
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (827 / 0 / 0)
- Kwalitee
Bus factor: 1- 97.53% Coverage
- License: artistic_2
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (9.09KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Digest::CRC
- File::MMagic
- MD5
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
File::Fingerprint - Identify a file by its checksums and other attributes
SYNOPSIS
use File::Fingerprint; my $fingerprint = File::Fingerprint->roll( $file );
DESCRIPTION
- roll
- init
- file
-
Returns the filename of the fingerprinted file. This is the same path passed to
roll
. - md5
- mmagic
-
Return the MIME type of the file, as determined by File::MMagic. For instance,
text/plain
. - basename
-
Returns the basename of the file.
- extension
-
Returns the file extensions as an array reference.
For instance, stable.tar.gz returns
[ qw(tar gz) ]
. - size
-
Returns the file size, in bytes.
- stat
-
Returns that stat buffer. This is the array reference of all of the values returned by
stat
. - lines
-
Returns the line count of the file.
- crc16
-
Returns the CRC-16 checksum of the file.
- crc32
-
Returns the CRC-32 checksum of the file.
TO DO
SEE ALSO
SOURCE AVAILABILITY
This source is in Github
git://github.com/briandfoy/file-fingerprint.git
AUTHOR
brian d foy,
<bdfoy@cpan.org>
COPYRIGHT AND LICENSE
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.
Module Install Instructions
To install File::Fingerprint, copy and paste the appropriate command in to your terminal.
cpanm File::Fingerprint
perl -MCPAN -e shell install File::Fingerprint
For more information on module installation, please visit the detailed CPAN module installation guide.