"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
b2: fix integration tests after accounting changes
Nick Craig-Wood629b7eacd85e
diff --git a/backend/b2/b2.go b/backend/b2/b2.goindex 49882dbba..eb550d5cc 100644--- a/backend/b2/b2.go+++ b/backend/b2/b2.go@@ -548,12 +548,12 @@ func (f *Fs) newObjectWithInfo(ctx context.Context, remote string, info *api.Filif info != nil {err := o.decodeMetaData(info)if err != nil {- return o, err+ return nil, err}} else {err := o.readMetaData(ctx) // reads info and headers, returning an errorif err != nil {- return o, err+ return nil, err}}return o, nil@@ -1082,7 +1082,8 @@ func (f *Fs) purge(ctx context.Context, oldOnly bool) error {for object := range toBeDeleted {oi, err := f.newObjectWithInfo(ctx, object.Name, object)if err != nil {- fs.Errorf(object, "Can't create object %+v", err)+ fs.Errorf(object.Name, "Can't create object %v", err)+ continue}tr := accounting.Stats(ctx).NewCheckingTransfer(oi)err = f.deleteByID(object.ID, object.Name)