my $upload_file = shift;
my $directive_file = shift;
+ our $Scratch_dir;
+
mail ("upload of $upload_file and $sig_file complete",1);
- unlink ($directive_file)
+ unlink File::Spec->catfile($Scratch_dir, $directive_file)
or warn "unlink($directive_file) failed: $!";
}
sub success_directive {
my $directive_file = shift;
+
+ our $Scratch_dir;
+
mail ("processing of $directive_file complete",1);
- unlink ($directive_file)
+
+ unlink File::Spec->catfile($Scratch_dir, $directive_file)
or warn "unlink($directive_file) failed: $!";
}