From a5d31d425425dc35c8aa4d41a3e2e39b20f14b76 Mon Sep 17 00:00:00 2001 From: Krishna Srinivas Date: Sat, 7 May 2016 01:58:55 +0530 Subject: [PATCH] XL/ListObjects: use string.TrimSuffix instead of Trim. (#1498) (#1509) --- tree-walk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree-walk.go b/tree-walk.go index efd29b130..8219984d7 100644 --- a/tree-walk.go +++ b/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 {