mirror of
https://github.com/rclone/rclone.git
synced 2025-01-29 21:04:23 +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 {
|
if err != nil {
|
||||||
Stats.Error()
|
Stats.Error()
|
||||||
Errorf(dst, "Failed to read hash: %v", err)
|
Errorf(dst, "Failed to read hash: %v", err)
|
||||||
} else if !Config.IgnoreSize && !HashEquals(srcSum, dstSum) {
|
} else if !Config.IgnoreChecksum && !HashEquals(srcSum, dstSum) {
|
||||||
Stats.Error()
|
Stats.Error()
|
||||||
err = errors.Errorf("corrupted on transfer: %v hash differ %q vs %q", hashType, srcSum, dstSum)
|
err = errors.Errorf("corrupted on transfer: %v hash differ %q vs %q", hashType, srcSum, dstSum)
|
||||||
Errorf(dst, "%v", err)
|
Errorf(dst, "%v", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user