"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
vfs: error out early if can't upload 0 length file
Nick Craig-Wood168d577297e4
diff --git a/vfs/vfscache/item.go b/vfs/vfscache/item.goindex 566e29e32..06a7454a5 100644--- a/vfs/vfscache/item.go+++ b/vfs/vfscache/item.go@@ -593,6 +593,10 @@ func (item *Item) _store(ctx context.Context, storeFn StoreFn) (err error) {o, err := operations.Copy(ctx, item.c.fremote, o, name, cacheObj)item.mu.Lock()if err != nil {+ if errors.Is(err, fs.ErrorCantUploadEmptyFiles) {+ fs.Errorf(name, "Writeback failed: %v", err)+ return nil+ }return fmt.Errorf("vfs cache: failed to transfer file from cache to remote: %w", err)}item.o = o