我试图将上传的文件覆盖到Dropbox
Dropbox不再替换文件,而是继续添加另一个conflicted copy
,
我使用
for (DBMetadata *file in metadata.contents) {
NSLog(@" %@ metadata %@", file.filename,file.rev);
}
打印myFile.sqlite metatdata 5372f37f73G
我上传文件:
[restClient uploadFile:@"myFile.sqlite" toPath:@"/Data" withParentRev:@"5372f37f73G" fromPath:filePath];
选中How to overwrite file with parent rev using Dropbox API in iOS?
How to avoid "conflicted copy" when uploading to dropbox from iOS client
dropbox keeps creating conflicted copies ios sdk (core api)
我在这里缺少什么?
答案 0 :(得分:0)
我在- (void)restClient:(DBRestClient *)client loadedMetadata:(DBMetadata *)metadata {
为其他人
//Calls all files for your app folder
[self.restClient loadMetadata:@"/"];
//Calls a folder you created within your app folder
[self.restClient loadMetadata:@"/yourfolder"];