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
add back recursively delete a folder
Chris Lue4b7e31902d6
diff --git a/weed/server/filer_server_handlers_write.go b/weed/server/filer_server_handlers_write.goindex 52be6735c2..c1b7e3826f 100644--- a/weed/server/filer_server_handlers_write.go+++ b/weed/server/filer_server_handlers_write.go@@ -223,9 +223,12 @@ func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request) {}// curl -X DELETE http://localhost:8888/path/to+// curl -X DELETE http://localhost:8888/path/to?recursive=truefunc (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request) {- err := fs.filer.DeleteEntryMetaAndData(filer2.FullPath(r.URL.Path), false, true)+ isRecursive := r.FormValue("recursive") == "true"++ err := fs.filer.DeleteEntryMetaAndData(filer2.FullPath(r.URL.Path), isRecursive, true)if err != nil {glog.V(1).Infoln("deleting", r.URL.Path, ":", err.Error())writeJsonError(w, r, http.StatusInternalServerError, err)