用于检索文件夹子项的 Dropbox v2 Web 服务未返回文件夹的 "size" 元数据

Dropbox v2 web service to retrieve children of a folder is not returning "size" metadata for folders

我正在将 Dropbox 集成到我的应用程序中。我可以使用“https://api.dropboxapi.com/2/files/list_folder”网络服务检索 Dropbox 中文件夹的子文件夹。但是返回的数据不包含文件夹的大小数据。有没有什么方法可以检索 Dropbox 中文件夹的大小数据?

不,Dropbox API 不报告文件夹的大小。您需要自己计算,大概是使用 /list_folder(使用 "recursive": true)。我假设您想到的定义是 "the sum of the sizes of all files contained within the folder, recursively."