Dropbox API list_folder函数 [英] Dropbox API list_folder functions

查看:81
本文介绍了Dropbox API list_folder函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dropbox API提供了两个列出文件夹内容的功能

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

  • list_folders and
  • list_folders_continue

当列表尚未完成时,它们都返回 has_more:true 。我在Dropbox apps文件夹中创建了1000个虚拟文件,并对其进行了测试。即使有那么多文件,完整列表也会由 list_folders 函数返回。那不是问题。但是,我想知道何时,即在哪种文件计数下, has_more:true 会发生。我希望这里的人会得到答案

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

使用5010个文件,我有 have_more 设置两次。文件数分别为2000、2000和1010

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

推荐答案

许多因素控制着何时使用<$得到部分结果c $ c> has_more:true 。如果您只想出于测试目的而触发它,请尝试更多文件。 (我想大概会触发5000。)

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.

这篇关于Dropbox API list_folder函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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