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