Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

ensure proper directory name

Chris Lu5a29d284fa5a
diff --git a/weed/filesys/dirty_pages_temp_file.go b/weed/filesys/dirty_pages_temp_file.go
index 58c150acf9..274b2a09ed 100644
--- a/weed/filesys/dirty_pages_temp_file.go
+++ b/weed/filesys/dirty_pages_temp_file.go
@@ -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() {