$filesInBackup->{$path_key}->{'size'}
));
-
- if (! defined($beenThere->{$key}) && ! found_in_db($key, @data)) {
+ my $found;
+ if (! defined($beenThere->{$key}) && ! ($found = found_in_db($key, @data)) ) {
print STDERR "# key: $key [", $beenThere->{$key},"]" if ($debug >= 2);
if ($filesInBackup->{$path_key}->{'type'} == BPC_FTYPE_DIR) {
- $new_dirs++;
+ $new_dirs++ unless ($found);
print STDERR " dir\n" if ($debug >= 2);
} else {
- $new_files++;
+ $new_files++ unless ($found);
print STDERR " file\n" if ($debug >= 2);
}
$size += $filesInBackup->{$path_key}->{'size'} || 0;