使用Dropbox Core API检索所有图像文件
我正在使用Google App Engine(python)开发Dropbox Core API。 GAE上的Dropbox-python-sdk似乎存在一些问题。因此,我选择直接使用Core API。
I am working on Dropbox Core API with Google App Engine (python). There seems to be some problems with Dropbox-python-sdk on GAE. Therefore, I have choose to use the Core APIs directly.
我的应用正在尝试从用户的保管箱(具有文件类型许可)中检索所有图像文件。但是我找不到不指定根目录/路径就无法获取所有文件的方法(所有API均 需要一个特定的文件路径)
My app is trying to retrieve all image files from a user's dropbox (with file type permission). But I couldn't find a way to get all files without specifying the root/path (all the APIs stated here requires a specific file path)
有什么想法吗?
编辑,Dropbox实际上建议不要通过 /元数据
调用自动递归。 (请参见 https://www.dropbox.com/developers/core/bestpractices 。)
EDIT Dropbox actually recommends not automatically recursing via /metadata
calls. (See https://www.dropbox.com/developers/core/bestpractices.)
没有获取递归文件列表的方法,因此您需要使用 / search
来查找文件或 / delta
,无需光标即可获取文件的完整列表。
There's no method to get a recursive list of files, so you would need to use /search
to find files or /delta
with no cursor to get the full list of files.
在这里可以选择选择器(如果您选择重新尝试让用户选择单个文件)?
Could the Chooser be an option here (if you're just trying to let the user pick individual files)?