Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Make check obey --ignore-size - fixes #1643

Nick Craig-Woodcbea06026a9c
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