"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
operations: check transfer hashes when using --size-only mode #3419
Nick Craig-Wood7c146e2618d5
diff --git a/fs/operations/operations.go b/fs/operations/operations.goindex 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 commonvar common hash.SethashType := 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()