"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
rc: fix --loopback with rc/list and others
Nick Craig-Wood535f5f3c9996
diff --git a/cmd/rc/rc.go b/cmd/rc/rc.goindex c776e7984..6f5e13acc 100644--- a/cmd/rc/rc.go+++ b/cmd/rc/rc.go@@ -117,7 +117,16 @@ func doCall(path string, in rc.Params) (out rc.Params, err error) {if call == nil {return nil, errors.Errorf("method %q not found", path)}- return call.Fn(context.Background(), in)+ out, err = call.Fn(context.Background(), in)+ if err != nil {+ return nil, errors.Wrap(err, "loopback call failed")+ }+ // Reshape (serialize then deserialize) the data so it is in the form expected+ err = rc.Reshape(&out, out)+ if err != nil {+ return nil, errors.Wrap(err, "loopback reshape failed")+ }+ return out, nil}// Do HTTP request