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.

skip creation for root

Chris Luc6b646e92c11
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go
index 486f7eaaf8..d49c86a76b 100644
--- a/weed/filer2/filer.go
+++ b/weed/filer2/filer.go
@@ -56,6 +56,10 @@ func (fs *Filer) KeepConnectedToMaster() {
func (f *Filer) CreateEntry(entry *Entry) error {
+ if string(entry.FullPath) == "/" {
+ return nil
+ }
+
dirParts := strings.Split(string(entry.FullPath), "/")
// fmt.Printf("directory parts: %+v\n", dirParts)