mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
Objects, as well as buckets are removed basing on objecs list received
from client. As the objects are fetched by Prefix, the request for
removing object 'foo' will remove all 'foo*' objects in this bucket.
For instance, having bucket with objects like so:
awesomebucket/
├── foo
├── foobar
└── thing
Rm("awesomebucket/foo") will have effect:
awesomebucket/
└── thing
This change fixes this bug by recognizing if single object has to be
removed or the entire bucket. For single object, we don't need to walk
through directories and can request to remove directly.
|
||
|---|---|---|
| .. | ||
| backend | ||
| formater | ||
| files.go | ||
| index.go | ||
| permissions.go | ||
| search.go | ||
| share.go | ||
| webdav.go | ||