"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
azureblob: fix multipart server side copies of 0 sized files
Nick Craig-Wood0ee7cd80f229
diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.goindex 6a966bb75..b6ed82d20 100644--- a/backend/azureblob/azureblob.go+++ b/backend/azureblob/azureblob.go@@ -1768,7 +1768,7 @@ func (f *Fs) copyMultipart(ctx context.Context, remote, dstContainer, dstPath stvar (srcSize = src.sizepartSize = int64(chunksize.Calculator(o, src.size, blockblob.MaxBlocks, f.opt.ChunkSize))- numParts = (srcSize-1)/partSize + 1+ numParts = (srcSize + partSize - 1) / partSizeblockIDs = make([]string, numParts) // list of blocks for finalizeg, gCtx = errgroup.WithContext(ctx)checker = newCheckForInvalidBlockOrBlob("copy", o)