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
also delete parent folder if empty
chrislu1917f70f78b0
diff --git a/weed/s3api/s3api_object_handlers_delete.go b/weed/s3api/s3api_object_handlers_delete.goindex 197522d0c6..5805785934 100644--- a/weed/s3api/s3api_object_handlers_delete.go+++ b/weed/s3api/s3api_object_handlers_delete.go@@ -44,7 +44,7 @@ func (s3a *S3ApiServer) DeleteObjectHandler(w http.ResponseWriter, r *http.RequedirectoriesWithDeletion := make(map[string]int)lastSeparator := strings.LastIndex(object, "/")if lastSeparator > 0 {- parentDirectoryPath := fmt.Sprintf("%s/%s", s3a.option.BucketsPath, bucket)+ parentDirectoryPath := fmt.Sprintf("%s/%s%s", s3a.option.BucketsPath, bucket, object[:lastSeparator])directoriesWithDeletion[parentDirectoryPath]++// purge empty folders, only checking folders with deletions