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

https://github.com/briandfoy/file-fingerprint.git

AUTHOR

brian d foy, <briandfoy@pobox.com>

COPYRIGHT AND LICENSE

Copyright © 2008-2024, brian d foy <briandfoy@pobox.com>. All rights reserved.

You may redistribute this under the terms of the Artistic License 2.0.