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 <anis@min.io>
This commit is contained in:
Anis Elleuch
2022-08-03 08:33:04 -07:00
committed by GitHub
co-authored by Anis Elleuch
parent cf428f1188
commit 554905ac46
+1 -2
View File
@@ -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
}