Iphone 使用dropbox api下载文件夹时出现问题
我正在使用Dropbox api并尝试下载该文件夹,但它不起作用。我可以下载任何类型的文件,但不能下载整个文件夹。这是我用来下载文件的代码Iphone 使用dropbox api下载文件夹时出现问题,iphone,dropbox-api,Iphone,Dropbox Api,我正在使用Dropbox api并尝试下载该文件夹,但它不起作用。我可以下载任何类型的文件,但不能下载整个文件夹。这是我用来下载文件的代码 NSLog(@"called"); NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *file = [NSString stringWithFormat:@"/%@",[me
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");
请帮助加载目录元数据,然后加载它引用的文件,请参阅以获取代码。我面临与您相同的问题 我得到的错误日志是“本地文件夹不存在”,即使我已经自己创建了该文件夹 我认为“DBRestClient”只是“单文件”下载程序 “不是”文件夹同步对象 现在我尝试使用同步API来同步目标文件夹 同步API地址
考虑一下……如果“DBRestClient”可以下载整个文件夹文件 同步API是无用的…如果您使用
[_restClient loadMetadata:@"/"];
干杯 已选中此链接。但由于我要下载文件夹而感到困惑。我正在表视图中显示元数据。这显示来自@“/”根目录的文件和文件夹。我选择要下载的文件,但不适用于文件夹:(