From 56d6ab34a5be61a9d9326e1a8b599a97cf92f91d Mon Sep 17 00:00:00 2001 From: Robert <43223+rspier@users.noreply.github.com> Date: Sat, 12 Jul 2025 20:15:31 -0700 Subject: [PATCH] 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. --- bin/paused | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/paused b/bin/paused index 8180d522..56e0c9d7 100755 --- a/bin/paused +++ b/bin/paused @@ -861,7 +861,7 @@ sub verify_gzip_tar { sub _rewrite_tarball { my($path) = @_; $path = File::Spec->rel2abs($path); - my $testdir = File::Temp::tempdir( + my $testdir = File::Temp->newdir( "paused_rewrite_XXXX", DIR => "/tmp", CLEANUP => 1,