[英]Problem in downloading Folder with dropbox api
我正在使用 Dropbox api 並嘗試下載文件夾但它不起作用。 我可以下載任何類型的文件,但不能下載整個文件夾。這是我用來下載文件的代碼
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”只是“單個文件”下載器?
“NOT”文件夾同步 object
現在我正在嘗試使用同步 API 來同步目標文件夾
同步 API 地址....
https://www.dropbox.com/developers/sync/start/ios
考慮一下……如果“DBRESTClient”可以下載整個文件夾文件……
同步 API 是沒用的......如果你像這樣使用
[_restClient loadMetadata:@"/"];
干杯!
加載目錄元數據,然后加載它引用的文件,代碼見帖子。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.