"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
drive: fix copying Google Docs to a backend which only supports SHA1
Nick Craig-Wood8d1d096c112f
diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex 30e930f38..271b0b046 100644--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -3965,7 +3965,7 @@ func (o *Object) Hash(ctx context.Context, t hash.Type) (string, error) {return "", hash.ErrUnsupported}func (o *baseObject) Hash(ctx context.Context, t hash.Type) (string, error) {- if t != hash.MD5 {+ if t != hash.MD5 && t != hash.SHA1 && t != hash.SHA256 {return "", hash.ErrUnsupported}return "", nil