"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
crypt: obey --ignore-checksum
Nick Craig-Woodffeefe8a56ca
diff --git a/backend/crypt/crypt.go b/backend/crypt/crypt.goindex 1aece2753..b1c8111d0 100644--- a/backend/crypt/crypt.go+++ b/backend/crypt/crypt.go@@ -396,6 +396,8 @@ type putFn func(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ..// put implements Put or PutStreamfunc (f *Fs) put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options []fs.OpenOption, put putFn) (fs.Object, error) {+ ci := fs.GetConfig(ctx)+if f.opt.NoDataEncryption {o, err := put(ctx, in, f.newObjectInfo(src, nonce{}), options...)if err == nil && o != nil {@@ -413,6 +415,9 @@ func (f *Fs) put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options [// Find a hash the destination supports to compute a hash of// the encrypted dataht := f.Fs.Hashes().GetOne()+ if ci.IgnoreChecksum {+ ht = hash.None+ }var hasher *hash.MultiHasherif ht != hash.None {hasher, err = hash.NewMultiHasherTypes(hash.NewHashSet(ht))