dropbox keeps creating conflicted copies ios sdk (core api)

橙三吉。 提交于 2019-12-13 18:10:08

问题


NSString *filename = @"NotesDBNew.sqlite"; //File name in DropBox
NSString *destDir = @"/"; //Destination path in DropBox
NSString *fromPath = @"..."; //local path to your DB file

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docsPath = [paths objectAtIndex:0];
fromPath = [docsPath stringByAppendingPathComponent:@"NotesDBNew.sqlite"];
for (DBMetadata *child in metadata.contents) {
   // NSString *folderName = [[child.path pathComponents] lastObject];
    if ([child.filename isEqualToString:filename]) {
        NSLog(@"%@",child.filename);
        NSString *strqwe=child.rev;
        [[self restClient] uploadFile:filename toPath:destDir withParentRev:strqwe fromPath:fromPath];
    }
}

来源:https://stackoverflow.com/questions/23148259/dropbox-keeps-creating-conflicted-copies-ios-sdk-core-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!