Skip to content

Commit

Permalink
fix for prefix based rm (#2354)
Browse files Browse the repository at this point in the history
mc rm --r with prefix not terminated by / doesn't get deleted.
example: mc rm --r --force --older-than=10 play/test/prefix

Fixes: #2341
  • Loading branch information
poornas authored and nitisht committed Jan 12, 2018
1 parent 722ee94 commit 5dee56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/client-s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ func (c *s3Client) listRecursiveInRoutineDirOpt(contentCh chan *clientContent, d
return
}
buckets = append(buckets, minio.BucketInfo{Name: bucket, CreationDate: content.Time})
} else if strings.HasSuffix(object, string(c.targetURL.Separator)) {
} else {
// Get stat of given object is a directory.
isIncomplete := false
isFetchMeta := false
Expand Down

0 comments on commit 5dee56d

Please sign in to comment.