"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
b2: remove `unverified:` prefix on sha1 - fixes #3654
Nick Craig-Wood0f0079ff71b0
diff --git a/backend/b2/b2.go b/backend/b2/b2.goindex 22424b09d..bd01a6d4b 100644--- a/backend/b2/b2.go+++ b/backend/b2/b2.go@@ -1375,6 +1375,12 @@ func (o *Object) decodeMetaDataRaw(ID, SHA1 string, Size int64, UploadTimestampif o.sha1 == "" || o.sha1 == "none" {o.sha1 = Info[sha1Key]}+ // Remove unverified prefix - see https://www.backblaze.com/b2/docs/uploading.html+ // Some tools (eg Cyberduck) use this+ const unverified = "unverified:"+ if strings.HasPrefix(o.sha1, unverified) {+ o.sha1 = o.sha1[len(unverified):]+ }o.size = Size// Use the UploadTimestamp if can't get file infoo.modTime = time.Time(UploadTimestamp)