mirror of
https://github.com/rclone/rclone.git
synced 2025-02-01 03:27:15 +08:00
Make check obey --ignore-size - fixes #1643
This commit is contained in:
parent
8207af9460
commit
cbea06026a
|
@ -849,7 +849,7 @@ func CheckFn(fdst, fsrc Fs, checkFunction func(a, b Object) (differ bool, noHash
|
||||||
checkIdentical := func(dst, src Object) (differ bool, noHash bool) {
|
checkIdentical := func(dst, src Object) (differ bool, noHash bool) {
|
||||||
Stats.Checking(src.Remote())
|
Stats.Checking(src.Remote())
|
||||||
defer Stats.DoneChecking(src.Remote())
|
defer Stats.DoneChecking(src.Remote())
|
||||||
if src.Size() != dst.Size() {
|
if !Config.IgnoreSize && src.Size() != dst.Size() {
|
||||||
Stats.Error()
|
Stats.Error()
|
||||||
Errorf(src, "Sizes differ")
|
Errorf(src, "Sizes differ")
|
||||||
return true, false
|
return true, false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user