From cbea06026a9cbc008f2dbc8ef74aaa07239bc523 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 1 Sep 2017 11:20:41 +0100 Subject: [PATCH] Make check obey --ignore-size - fixes #1643 --- fs/operations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/operations.go b/fs/operations.go index f4bf2b2c5..bf918ec6b 100644 --- a/fs/operations.go +++ b/fs/operations.go @@ -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