当我使用 filesDownload() 时,我需要弄清楚我的文件在哪里下载。我没有看到文件目标的参数。这是我的代码:
require('isomorphic-fetch');
var Dropbox = require('dropbox').Dropbox;
var dbx = new Dropbox({ accessToken: 'accessToken', fetch});
dbx.filesDownload({path: 'filepath}).
then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});
当我运行代码时,我得到了一个成功的回调,但我在任何地方都看不到该文件。
我需要知道我的文件下载到哪里以及如何在我的函数中指定文件目标。
谢谢,杰拉德
我已经使用了 SDK 文档 ( http://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor )中描述的函数,但我不知道我的文件在哪里。
预期结果:文件下载到 Dropbox 到我指定的路径。
实际结果:我从 Dropbox 成功回调,但找不到下载的文件。