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