Mercurial > hg > foxridge-archiver
diff archivecheck.pl @ 26:24d9dd63ae93
fixed handling of "." in directories
| author | casties |
|---|---|
| date | Wed, 07 Dec 2005 18:31:04 +0100 |
| parents | 320c4b93bf39 |
| children | 724c615b5982 |
line wrap: on
line diff
--- a/archivecheck.pl Wed Oct 05 15:35:12 2005 +0200 +++ b/archivecheck.pl Wed Dec 07 18:31:04 2005 +0100 @@ -16,7 +16,7 @@ # # program version -my $version = "0.4.1 (15.2.2005)"; +my $version = "0.4.2 (7.12.2005 ROC)"; # read command line parameters my $args = parseargs; @@ -29,8 +29,6 @@ # archive name (archive-path element, usually == $docdir) my $archname; -# archive storage date -my $archdate; ####################################################### @@ -126,7 +124,10 @@ my $name = sstrip($fn->findvalue('child::name')); my $path = sstrip($fn->findvalue('child::path')); logger("DEBUG", "DIR: ($path)$name"); - my $f = ($path) ? "$path/$name" : "$name"; + my $f = "$name"; + if (($path)&&($path ne '.')) { + $f = "$path/$name"; + } $files{$f} = [$name]; }
