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

master
Krishna Srinivas 9 years ago committed by Harshavardhana
parent 20ca65c793
commit a5d31d4254
  1. 2
      tree-walk.go

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

Loading…
Cancel
Save