使用Dropbox API下载文件夹时出现问题 [英] Problem in downloading Folder with dropbox api

查看:214
本文介绍了使用Dropbox API下载文件夹时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Dropbox api并尝试下载文件夹,但是它不起作用。我可以下载任何类型的文件,但不能下载整个文件夹。.这是我用来下载文件的代码

I am using Dropbox api and tried to download folder but it is not working. I am able to download any type of file but not entire folder ..Here is my code which I used to download file

NSLog(@"called");

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

    NSString *file = [NSString stringWithFormat:@"/%@",[metaArray objectAtIndex:indexPath.row]]; 

    //NSString *file = @"/Photos";
    NSString *path = [NSString stringWithFormat:@"%@/Downloaded Data/%@", [paths objectAtIndex:0],file];

    //NSString *str = [NSString stringWithFormat:@"%@/Downloaded Data",path];

    [self.restClient loadFile:file intoPath:path];

    NSLog(@"Downloaded");

请帮助

推荐答案

我正面临与您相同的问题,

I'm facing the same problem as you are,

我得到的错误日志是本地文件夹不存在,即使我已经我自己创建文件夹

and the error log I got is that "local folder not exist" even if I already create the folder by myself

我认为 DBRestClient只是单个文件下载器?

I think that the "DBRestClient" is only the "single file" downloader?

不文件夹同步对象

现在我正尝试使用同步API同步目标文件夹

now I'm trying to use the sync API to sync target folder

同步API地址。...

sync API address....

https://www.dropbox.com/developers/sync/start/ios

考虑一下...如果 DBRestClient可以下载整个文件夹文件...。

thinking about that...if the "DBRestClient" can download whole folder files....

同步API没用....如果您使用

the sync API is useless....if you use like

[_restClient loadMetadata:@"/"];

欢呼!

这篇关于使用Dropbox API下载文件夹时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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