Skip to content

Commit

Permalink
Fix Bug Delete Folder (#912)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
  • Loading branch information
dvaldivia committed Jul 29, 2021
1 parent 1689a73 commit 64154ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions restapi/user_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,15 @@ func getDeleteObjectResponse(session *models.Principal, params user_api.DeleteOb
func getDeleteMultiplePathsResponse(session *models.Principal, params user_api.DeleteMultipleObjectsParams) *models.Error {
ctx := context.Background()
var version string
s3Client, err := newS3BucketClient(session, params.BucketName, "")
if err != nil {
return prepareError(err)
}
for i := 0; i < len(params.Files); i++ {
if params.Files[i].VersionID != "" {
version = params.Files[i].VersionID
}
prefix := params.Files[i].Path
s3Client, err := newS3BucketClient(session, params.BucketName, prefix)
if err != nil {
return prepareError(err)
}
// create a mc S3Client interface implementation
// defining the client to be used
mcClient := mcClient{client: s3Client}
Expand Down

0 comments on commit 64154ca

Please sign in to comment.