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

This commit is contained in:
rongali tarun 2024-02-08 18:30:46 +05:30
parent d994675e12
commit a27c8d73c5

View File

@ -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)
}