Merge pull request #1172 from aaronlehmann/swift-empty-delete-request
Fix empty delete requests with Swift fs driver
This commit is contained in:
commit
d7b999e903
@ -587,7 +587,7 @@ func (d *driver) Delete(ctx context.Context, path string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if d.BulkDeleteSupport {
|
||||
if len(objects) > 0 && d.BulkDeleteSupport {
|
||||
filenames := make([]string, len(objects))
|
||||
for i, obj := range objects {
|
||||
filenames[i] = obj.Name
|
||||
|
Loading…
Reference in New Issue
Block a user