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:
parent
d994675e12
commit
a27c8d73c5
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ func (s *syncCopyMove) pairChecker(in *pipe, out *pipe, fraction int, wg *sync.W
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
deleteFileErr := operations.DeleteFile(s.ctx, src)
|
deleteFileErr := operations.DeleteFileWithBackupDir(s.ctx, src, s.backupDir)
|
||||||
s.processError(deleteFileErr)
|
s.processError(deleteFileErr)
|
||||||
s.logger(s.ctx, operations.TransferError, pair.Src, pair.Dst, deleteFileErr)
|
s.logger(s.ctx, operations.TransferError, pair.Src, pair.Dst, deleteFileErr)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue