XL/ListObjects: use string.TrimSuffix instead of Trim. (#1498) (#1509)

This commit is contained in:
Krishna Srinivas 2016-05-07 01:58:55 +05:30 committed by Harshavardhana
parent 20ca65c793
commit a5d31d4254
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func treeWalk(layer ObjectLayer, bucket, prefixDir, entryPrefixMatch, marker str
if isXL && strings.HasSuffix(entry, multipartSuffix) {
// If the entry was detected as a multipart file we use
// getMultipartObjectInfo() to fill the FileInfo structure.
entry = strings.Trim(entry, multipartSuffix)
entry = strings.TrimSuffix(entry, multipartSuffix)
var info MultipartObjectInfo
info, err = getMultipartObjectInfo(disk, bucket, path.Join(prefixDir, entry))
if err != nil {