App-Nrepo

 view release on metacpan or  search on metacpan

lib/App/Nrepo/Plugin/Base.pm  view on Meta::CPAN

      message => "unknown validation check type: $o{'check'}"
    );
  }
}

sub _validate_file_size {
  my $self = shift;
  my $file = shift;
  my $size = shift;

  my @stats     = stat($file);
  my $file_size = $stats[7];

  return $file_size eq $size ? 1 : undef;
}

sub _validate_file_sha {
  my $self     = shift;
  my $file     = shift;
  my $checksum = shift;



( run in 1.104 second using v1.01-cache-2.11-cpan-49f99fa48dc )