Skip to content

Commit 44b87d0

Browse files
committed
Create database copy in tmp directory
Signed-off-by: perdasilva <[email protected]>
1 parent 0899512 commit 44b87d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lib/tmp/copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// CopyTmpDB reads the file at the given path and copies it to a tmp directory, returning the copied file path or an err
1111
func CopyTmpDB(original string) (path string, err error) {
12-
dst, err := ioutil.TempFile(".", "db-")
12+
dst, err := ioutil.TempFile("tmp", "db-")
1313
if err != nil {
1414
return "", err
1515
}

0 commit comments

Comments
 (0)