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

operations: check transfer hashes when using --size-only mode #3419

Nick Craig-Wood7c146e2618d5
diff --git a/fs/operations/operations.go b/fs/operations/operations.go
index fd0293d91..f67ef087d 100644
--- a/fs/operations/operations.go
+++ b/fs/operations/operations.go
@@ -282,7 +282,7 @@ func Copy(ctx context.Context, f fs.Fs, dst fs.Object, remote string, src fs.Obj
// work out which hash to use - limit to 1 hash in common
var common hash.Set
hashType := hash.None
- if !fs.Config.SizeOnly && !fs.Config.IgnoreChecksum {
+ if !fs.Config.IgnoreChecksum {
common = src.Fs().Hashes().Overlap(f.Hashes())
if common.Count() > 0 {
hashType = common.GetOne()