"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
pcloud: return an early error when Put is called with an unknown size
Nick Craig-Wood9c2533821d13
diff --git a/backend/pcloud/pcloud.go b/backend/pcloud/pcloud.goindex a3776adf2..56df3cf3c 100644--- a/backend/pcloud/pcloud.go+++ b/backend/pcloud/pcloud.go@@ -1099,6 +1099,10 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, opmodTime := src.ModTime(ctx)remote := o.Remote()+ if size < 0 {+ return errors.New("can't upload unknown sizes objects")+ }+// Create the directory for the object if it doesn't existleaf, directoryID, err := o.fs.dirCache.FindPath(ctx, remote, true)if err != nil {