"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: log hash ok on upload
albertony12cd3226432a
diff --git a/backend/crypt/crypt.go b/backend/crypt/crypt.goindex aa07b7a68..6d186d13d 100644--- a/backend/crypt/crypt.go+++ b/backend/crypt/crypt.go@@ -404,13 +404,16 @@ func (f *Fs) put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options [if err != nil {return nil, errors.Wrap(err, "failed to read destination hash")}- if srcHash != "" && dstHash != "" && srcHash != dstHash {- // remove object- err = o.Remove(ctx)- if err != nil {- fs.Errorf(o, "Failed to remove corrupted object: %v", err)+ if srcHash != "" && dstHash != "" {+ if srcHash != dstHash {+ // remove object+ err = o.Remove(ctx)+ if err != nil {+ fs.Errorf(o, "Failed to remove corrupted object: %v", err)+ }+ return nil, errors.Errorf("corrupted on transfer: %v crypted hash differ %q vs %q", ht, srcHash, dstHash)}- return nil, errors.Errorf("corrupted on transfer: %v crypted hash differ %q vs %q", ht, srcHash, dstHash)+ fs.Debugf(src, "%v = %s OK", ht, srcHash)}}