简体   繁体   English

从大型目录Dropbox API访问文件

[英]Access files from a large directory Dropbox API

I am trying to access a subset of files from a directory in Dropbox. 我正在尝试从Dropbox中的目录访问文件的子集。 That directory has more than 25k files (about 200k and growing) and so my initial attempt at building a list of filenames from client.metadata isn't workable. 该目录有超过25k个文件(大约200k,并且还在不断增长),因此我最初尝试从client.metadata构建文件名列表不可行。

How can one get around this? 如何解决这个问题?

I can access the filenames from my local copy and periodically update that list. 我可以从本地副本访问文件名,并定期更新该列表。 However, because this is a script that a few people in my lab will use, I hoped for something that did not rely on my local copy of Dropbox. 但是,由于这是我的实验室中的一些人会使用的脚本,因此我希望所使用的脚本不依赖于我的Dropbox本地副本。

According to the dropbox api, the max amount of files returned from the /metadata api call is 25,000. 根据保管箱api的数据,从/ metadata api调用返回的最大文件数量为25,000。 There is a way to limit the amount of files returned from the api call, but there does not seem a way to list file entries starting from X to Y (like getting entries 100 to 200, then 200 to 300), it seems the only way is to separate these large number of files into folders 有一种方法可以限制从api调用返回的文件数量,但是似乎没有办法列出从X到Y开头的文件条目(例如获取条目100到200,然后是200到300),这似乎是唯一的方法方法是将这些大量文件分离到文件夹中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM