ensure proper directory name

a fix related to https://github.com/chrislusf/seaweedfs/issues/2064
This commit is contained in:
Chris Lu 2021-05-13 10:18:35 -07:00
parent e3f47ddb76
commit 5a29d284fa

View file

@ -6,6 +6,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"io"
"os"
"path/filepath"
"sync"
"time"
)
@ -24,7 +25,7 @@ type TempFileDirtyPages struct {
}
var (
tmpDir = os.TempDir() + "sw"
tmpDir = filepath.Join(os.TempDir(), "sw")
)
func init() {