diff --git a/fs/sync/sync.go b/fs/sync/sync.go index 39dfb3818..f99e38909 100644 --- a/fs/sync/sync.go +++ b/fs/sync/sync.go @@ -420,7 +420,7 @@ func (s *syncCopyMove) pairChecker(in *pipe, out *pipe, fraction int, wg *sync.W return } } else { - deleteFileErr := operations.DeleteFile(s.ctx, src) + deleteFileErr := operations.DeleteFileWithBackupDir(s.ctx, src, s.backupDir) s.processError(deleteFileErr) s.logger(s.ctx, operations.TransferError, pair.Src, pair.Dst, deleteFileErr) }