# remove files for this DVD
map {
- print "\tremoving $_\n";
- unlink($_) || die "can't rm $_: $!";
+ if (-d $_) {
+ print "\tremoving dir $_\n";
+ rmtree($_) || die "can't rmtree $_: $!";
+ } else {
+ print "\tremoving $_\n";
+ unlink($_) || die "can't rm $_: $!";
+ }
} glob ( "/$iso_dir/$dvd_nr.*" );
$dbh->commit;