From a27c8d73c57ff03fb851f661a44e8d01cffbdab3 Mon Sep 17 00:00:00 2001 From: rongali tarun Date: Thu, 8 Feb 2024 18:30:46 +0530 Subject: [PATCH] fs: audit the existing call sides for operations.DeleteFile and try to figure out whether they should be obeying --backup-dir found 1 such case --- fs/sync/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }