Just a very short question about DropBox – is there any way to find out when both uploads and downloads are done?
There are the functions
-(void)restClient:(DBRestClient *)client uploadedFile:(NSString *)srcPath
-(void)restClient:(DBRestClient *)client loadedFile:(NSString *)destPath
-(void)restClient:(DBRestClient *)client loadedFileFailedWithError:(NSError *)error
-(void)restClient:(DBRestClient *)client uploadFileFailedWithError:(NSError *)error
But is there some function which tells you when all of these are ended? I need to do a sync, i.e. possibly upload and download files, and then stop the animation telling the user that DB is still doing something. E.g. if the loadedFile is called first and ends the animation, while an upload is still going on, this is obviously no good.
So is there something like: dropBox stopped working and we can now tell the user what has been uploaded/downloaded/if there were any errors?
Thanks in advance and sorry if I have overlooked the obvious but I find the dropBoxAPI not very well documented.
You have to do that manually. There’s no embedded command to do this. Simply create an int and set its value to the number of files you have to transfer. When each transfer is done or if it fails, decrease the value of that int. If it reaches 0, end the animation.