multi: replace ioutil.TempDir

This commit is contained in:
erik
2023-06-14 11:45:56 +02:00
committed by ErikEk
parent caf2419ff6
commit df4ddcc573
3 changed files with 3 additions and 6 deletions

View File

@ -9,7 +9,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
@ -824,7 +823,7 @@ func (hn *HarnessNode) BackupDB() error {
}
} else {
// Backup files.
tempDir, err := ioutil.TempDir("", "past-state")
tempDir, err := os.MkdirTemp("", "past-state")
if err != nil {
return fmt.Errorf("unable to create temp db folder: %w",
err)