/[BackupPC]/trunk/lib/BackupPC/SearchLib.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/BackupPC/SearchLib.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 237 by dpavlin, Wed Nov 16 19:24:32 2005 UTC revision 253 by dpavlin, Mon Dec 12 13:41:08 2005 UTC
# Line 377  sub get_tgz_size_by_name($) { Line 377  sub get_tgz_size_by_name($) {
377    
378          my $size = -1;          my $size = -1;
379    
380          if (-f $tgz) {          if (-f "${tgz}.tar.gz") {
381                  $size = (stat($tgz))[7];                  $size = (stat("${tgz}.tar.gz"))[7];
382          } elsif (-d $tgz) {          } elsif (-d $tgz) {
383                  opendir(my $dir, $tgz) || die "can't opendir $tgz: $!";                  opendir(my $dir, $tgz) || die "can't opendir $tgz: $!";
384                  my @parts = grep { !/^\./ && -f "$tgz/$_" } readdir($dir);                  my @parts = grep { !/^\./ && -f "$tgz/$_" } readdir($dir);

Legend:
Removed from v.237  
changed lines
  Added in v.253

  ViewVC Help
Powered by ViewVC 1.1.26