Archived Forum Post

Index of archived forum posts

Question:

Skip file during SyncRemoteTree seems not working

Nov 21 '14 at 12:20

I must avoid to upload any sqlite file (extension .sqlite) during SyncRemoteTree. The ObjectiveC callback implementation is in the following fragment but seems not working because the file is uploaded anyway. Did I make any error ?

Thanks Dario


Answer

You didn't write your event handler correctly. It should be this:

(void)BeginUploadFile:(NSString )path skip:(BOOL *)skip
{ 
if ([path hasSuffix:@".sqlite"]) { *skip = YES;  } 
}


Answer

Thanks a lot !

Dario