Skip to content

Commit 64ddd5c

Browse files
rspierandk
authored andcommitted
Switch to object interface for creating tempdirs
Switch to the object interface for creating temp directories. This primarily changes their lifetime. They are now cleaned up when the scope ends, as opposed to when the program exits.
1 parent fc15f75 commit 64ddd5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/paused

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ sub verify_gzip_tar {
861861
sub _rewrite_tarball {
862862
my($path) = @_;
863863
$path = File::Spec->rel2abs($path);
864-
my $testdir = File::Temp::tempdir(
864+
my $testdir = File::Temp->newdir(
865865
"paused_rewrite_XXXX",
866866
DIR => "/tmp",
867867
CLEANUP => 1,

0 commit comments

Comments
 (0)