Merge pull request #1172 from aaronlehmann/swift-empty-delete-request

Fix empty delete requests with Swift fs driver
This commit is contained in:
Richard Scothern 2015-11-10 10:36:19 -08:00
commit d7b999e903

View File

@ -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