fix for prefix based rm (#2354)

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
This commit is contained in:
poornas
2018-01-12 09:23:03 +05:30
committed by Nitish Tiwari
parent 722ee94165
commit 5dee56d5d0
+1 -1
View File
@@ -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