=================================================================== RCS file: /cvs/openbsd/OpenBSDTorrents/CurrentTorrents.pl,v retrieving revision 1.4 retrieving revision 1.6 diff -u -r1.4 -r1.6 --- openbsd/OpenBSDTorrents/CurrentTorrents.pl 2005/03/24 00:20:33 1.4 +++ openbsd/OpenBSDTorrents/CurrentTorrents.pl 2005/03/25 03:12:05 1.6 @@ -1,5 +1,5 @@ #!/usr/bin/perl -T -#$Id: CurrentTorrents.pl,v 1.4 2005/03/24 00:20:33 andrew Exp $ +#$Id: CurrentTorrents.pl,v 1.6 2005/03/25 03:12:05 andrew Exp $ use strict; use warnings; use diagnostics; @@ -14,6 +14,8 @@ #use YAML; +justme(); + my %files; opendir DIR, $TorrentDir or die "Couldn't opendir $TorrentDir: $!"; foreach (readdir DIR) { @@ -62,7 +64,7 @@ $files{$name}{$epoch}{comment} = $t->{comment}; my ($path) = $t->{comment} =~ /Files from ([^\n]+)\n/s; - unless (-d "$TorrentDir/$path") { + unless (-d "$BaseDir/$path") { print "Deleting $files{$name}{$epoch}{file} the path doesn't exist.\n"; push @delete, $files{$name}{$epoch}{file}; }