如何将数据附加到现有的Dropbox文件? [英] How to append data to existing Dropbox file?

查看:67
本文介绍了如何将数据附加到现有的Dropbox文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在访问Dropbox API,以使用Java上传和下载文件。现在,我需要创建一个可以将数据追加到现有Dropbox文件中的函数。
我有一个有效的代码,该代码首先下载文件,然后上传带有附加文本的文件。但是,由于我的代码效率低下,有没有更好的方法呢?

I'm accessing Dropbox API to upload and download files using Java. Now, I need to create a function which can append data to existing Dropbox file. I've a working code which first downloads a file and then uploads it with the text appended. However, is there is a better way to do this, because my code has is inefficient?

请先谢谢。 :)

推荐答案

Dropbox通常不支持直接文件编辑,因此现有的API不支持您要查找的内容

Conventionally there is no support for direct file editing in Dropbox, so what you looking for is not supported in existing APIs of Dropbox, possibly what you are doing currently,


首先下载文件,然后上传带有附加文本的文件 >

是在Dropbox云中修改文件的最佳方法(也是唯一方法)。

is the best (and the only) way of modifying files in Dropbox cloud.

但除此之外,它确实支持文件修订机制,可以通过/ delta,/ revision来实现

But apart from this it does support file revision mechanism, which can be achieved with help of /delta, /revision


一种让您跟上
用户的Dropbox中文件和文件夹更改的方法。您可以定期调用/ delta以获得
增量条目列表,这些列表说明如何更新本地
状态以匹配服务器状态。

A way of letting you keep up with changes to files and folders in a user's Dropbox. You can periodically call /delta to get a list of "delta entries", which are instructions on how to update your local state to match the server's state.

https:// www。 dropbox.com/developers-v1/core/docs#revisions

祝你好运:)

这篇关于如何将数据附加到现有的Dropbox文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆