Fix: Remove local file during a mirror operation (#2593)

Fixes #2586
This commit is contained in:
kannappanr
2018-11-09 13:31:15 -08:00
committed by GitHub
parent 8137e79d0c
commit 2fc5413002
+1 -1
View File
@@ -230,7 +230,7 @@ func (mj *mirrorJob) doRemove(sURLs URLs) URLs {
targetWithAlias := filepath.Join(sURLs.TargetAlias, sURLs.TargetContent.URL.Path)
// Remove extraneous file/bucket on target.
err := probe.NewError(removeRecursive(targetWithAlias, isIncomplete, mj.isFake, 0, 0, sURLs.encKeyDB))
err := probe.NewError(removeSingle(targetWithAlias, isIncomplete, mj.isFake, 0, 0, sURLs.encKeyDB))
return sURLs.WithError(err)
}