mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 23:22:46 +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) {
|
||||
Stats.Checking(src.Remote())
|
||||
defer Stats.DoneChecking(src.Remote())
|
||||
if src.Size() != dst.Size() {
|
||||
if !Config.IgnoreSize && src.Size() != dst.Size() {
|
||||
Stats.Error()
|
||||
Errorf(src, "Sizes differ")
|
||||
return true, false
|
||||
|
|
Loading…
Reference in New Issue
Block a user