"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
local: make Hash function cancelable via context
Nick Craig-Wood5e4caa69cefb
diff --git a/backend/local/local.go b/backend/local/local.goindex 3c00d5389..e36c56e2c 100644--- a/backend/local/local.go+++ b/backend/local/local.go@@ -903,7 +903,7 @@ func (o *Object) Hash(ctx context.Context, r hash.Type) (string, error) {return "", fmt.Errorf("hash: failed to open: %w", err)}var hashes map[hash.Type]string- hashes, err = hash.StreamTypes(in, hash.NewHashSet(r))+ hashes, err = hash.StreamTypes(readers.NewContextReader(ctx, in), hash.NewHashSet(r))closeErr := in.Close()if err != nil {return "", fmt.Errorf("hash: failed to read: %w", err)