我正在尝试通过以下方式从保管箱中保存文件:
NSString *fileName = [NSString stringWithFormat:@"/newFile.json"];
// Do any additional setup after loading the view, typically from a nib.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString* path2 = [documentsDirectory stringByAppendingPathComponent:
[NSString stringWithFormat:@"%@", fileName]];
[[self restClient] loadFile:fileName intoPath:path2];
该文件位于 apps/appname/sandbox/newFile.json 下
但我收到此错误:
2012-05-12 21:05:46.824 快速作业和业务 [934:707] [警告] DropboxSDK:向 /1/files/sandbox/newFile.json 发出错误请求 - 找不到文件
但是文件在那里!!