mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02:00
fix --ignore-checksum
This commit is contained in:
parent
69a15ae173
commit
b3a526814e
@ -336,7 +336,7 @@ func Copy(f Fs, dst Object, remote string, src Object) (err error) {
|
||||
if err != nil {
|
||||
Stats.Error()
|
||||
Errorf(dst, "Failed to read hash: %v", err)
|
||||
} else if !Config.IgnoreSize && !HashEquals(srcSum, dstSum) {
|
||||
} else if !Config.IgnoreChecksum && !HashEquals(srcSum, dstSum) {
|
||||
Stats.Error()
|
||||
err = errors.Errorf("corrupted on transfer: %v hash differ %q vs %q", hashType, srcSum, dstSum)
|
||||
Errorf(dst, "%v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user