1
我使用node.js和保管箱包从文件夹下载文件。我能够验证并列出文件,但不能下载它们。我希望能够下载没有共享的文件。从保管箱文件夹下载文件
client.filesListFolder({ path: directory })
.then(function (response) {
response.entries.forEach(function (entry) {
if (entry[".tag"] === "file") {
client.filesDownload({ url: entry.path_display})
.then(function (data) {
// ...
})
.catch(function (err) {
throw err;
});
}
});
})
.catch(function (err) {
me.ThrowError(null, err.status, err.error);
});
它看起来就像你使用[dropbox-sdk-js](https://github.com/dropbox/dropbox-sdk-js)并且已经找到['filesDownload'](https://dropbox.github.io/ dropbox-sdk-js/Dropbox.html#filesDownload)方法。什么是不正确的工作?你有错误吗? – Greg