Dropbox API list_folder functions

五迷三道 提交于 2019-12-13 05:13:23

问题


The Dropbox API provides two functions to list the contents of a folder

  • list_folders and
  • list_folders_continue

with both returning a has_more:true when the listing has not yet been completed. I created 1000 dummy files in my Dropbox apps folder and tested them out. Even with that many files the full listing was returned by the list_folders function. That is not a problem. However, I would like to know when, i.e at what sort of file count, has_more:true will occur. I hope that someone here will have the answer


With 5010 files I had have_more set two times. The file counts were 2000, 2000 and 1010


回答1:


A lot of factors control when you'll get a partial result with has_more:true. If you just want to trigger it for testing purposes, just try more files. (I'd guess that by, say, 5000 you'll trigger it.)

In your production app, you should just be ready to handle it at any time, since there are no guarantees about when it will happen.



来源:https://stackoverflow.com/questions/34237283/dropbox-api-list-folder-functions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!