"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: Fix seek producing corrupted file errors
Nick Craig-Wood98804cb860f1
diff --git a/b2/b2.go b/b2/b2.goindex 5b9558b20..f28630b83 100644--- a/b2/b2.go+++ b/b2/b2.go@@ -1121,6 +1121,10 @@ func (o *Object) Open(options ...fs.OpenOption) (in io.ReadCloser, err error) {fs.Debug(o, "Reading sha1 from info - %q", o.sha1)}}+ // Don't check length or hash on partial content+ if resp.StatusCode == http.StatusPartialContent {+ return resp.Body, nil+ }return newOpenFile(o, resp), nil}