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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
bugfix:check Directory attr before create it
聂鹏1ed41f8b21b4
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.goindex 53de5bea3a..9c4dd83246 100644--- a/weed/filer2/filer.go+++ b/weed/filer2/filer.go@@ -80,6 +80,8 @@ func (f *Filer) CreateEntry(entry *Entry) error {if mkdirErr != nil {return fmt.Errorf("mkdir %s: %v", dirPath, mkdirErr)}+ } else if !dirEntry.IsDirectory() {+ return fmt.Errorf("%s is a file", dirPath)}// cache the directory entry