From 554905ac465e693e2e4d369f498620835299edb2 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 3 Aug 2022 16:33:04 +0100 Subject: [PATCH] rm: Fix successful message for operations on the filesystem (#4182) Names of the removed files when mc operatres on the filesystem are not shown properly. The code is splitting the removed path into bucket and prefix which doesn't make sense for filesystem. The commit will just send the path of the removed object. Co-authored-by: Anis Elleuch --- cmd/client-fs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/client-fs.go b/cmd/client-fs.go index 24ece93d..9181a799 100644 --- a/cmd/client-fs.go +++ b/cmd/client-fs.go @@ -522,9 +522,8 @@ func (f *fsClient) Remove(ctx context.Context, isIncomplete, isRemoveBucket, isB } e := deleteFile(f.PathURL.Path, name) if e == nil { - _, objectName := url2BucketAndObject(&content.URL) res := RemoveResult{} - res.ObjectName = objectName + res.ObjectName = content.URL.Path resultCh <- res continue }