Skip to content

Commit 56d6ab3

Browse files
authored
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 aca9336 commit 56d6ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)