From ab31cf97dab68ec4f7dd1bafba8c9e883ba9d685 Mon Sep 17 00:00:00 2001 From: Praveen raj Mani Date: Tue, 25 Sep 2018 22:50:14 +0530 Subject: [PATCH] Remove extraneous bucket on target while mirroring (#2550) Fixes #2527 --- cmd/mirror-main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mirror-main.go b/cmd/mirror-main.go index 541de6cd..e2dd19d0 100644 --- a/cmd/mirror-main.go +++ b/cmd/mirror-main.go @@ -229,8 +229,8 @@ func (mj *mirrorJob) doRemove(sURLs URLs) URLs { // Construct proper path with alias. targetWithAlias := filepath.Join(sURLs.TargetAlias, sURLs.TargetContent.URL.Path) - // Remove extraneous file on target. - err := probe.NewError(removeSingle(targetWithAlias, isIncomplete, mj.isFake, 0, 0, sURLs.encKeyDB)) + // Remove extraneous file/bucket on target. + err := probe.NewError(removeRecursive(targetWithAlias, isIncomplete, mj.isFake, 0, 0, sURLs.encKeyDB)) return sURLs.WithError(err) }