Archive-BagIt
view release on metacpan or search on metacpan
lib/Archive/BagIt/Role/Algorithm.pm view on Meta::CPAN
# ABSTRACT: A role that defines the interface to a hashing algorithm
our $VERSION = '0.101'; # VERSION
has 'name' => (
is => 'ro',
);
sub get_optimal_bufsize {
my ($self, $fh) = @_;
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks)
= stat $fh;
# Windows systems return "" for $blksize
if ((defined $blksize ) && ($blksize ne "") && ($blksize >= 512)) {
return $blksize;
}
return 8192;
}
sub register_plugin {
( run in 0.659 second using v1.01-cache-2.11-cpan-5735350b133 )