diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-06-22 10:01:00 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-06-22 10:01:00 -0700 |
| commit | a4e3cffe0a452ad12b5aa9e3f57113a0fa4ba7ce (patch) | |
| tree | a718997d7745e6fce805b1461e3003176440c2b2 /weed/s3api | |
| parent | a73fd7682a380e077a71e17220fca800ac98bcb5 (diff) | |
| download | seaweedfs-a4e3cffe0a452ad12b5aa9e3f57113a0fa4ba7ce.tar.xz seaweedfs-a4e3cffe0a452ad12b5aa9e3f57113a0fa4ba7ce.zip | |
S3: DeleteObject API also support deleting a folder recursively
Diffstat (limited to 'weed/s3api')
| -rw-r--r-- | weed/s3api/s3api_object_handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index 69ed70ab3..0d287c4ff 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -105,7 +105,7 @@ func (s3a *S3ApiServer) DeleteObjectHandler(w http.ResponseWriter, r *http.Reque bucket := vars["bucket"] object := getObject(vars) - destUrl := fmt.Sprintf("http://%s%s/%s%s", + destUrl := fmt.Sprintf("http://%s%s/%s%s?recursive=true", s3a.option.Filer, s3a.option.BucketsPath, bucket, object) s3a.proxyToFiler(w, r, destUrl, func(proxyResponse *http.Response, w http.ResponseWriter) { |
