fix --ignore-checksum
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user