I have the requirement to allow the user to be able to backup all of their files. I have 3 locations I store files in my app. One is to store the files locally on the device. Second is to store the files in iCloud Drive in the Mobile Documents folder (which is just another folder in the file system), and third, in Dropbox.
In the local and iCloud Drive situations, I can simply create a zip file that stores all of the files to be backed up.
How would I go about doing that with Dropbox since there's no way of using regular NSFileManager calls on any files in Dropbox with the Sync API? Does it mean that every file I want to add to my zip file I have to first open a DBFile, read it into an NSData, then write it out to the local file system, then add that file to my zip archive? I can imagine that will perform very badly. Also, my directory structure can contain any number of folders and sub-folders. So this presents a bit of a problem for me I think when using the Sync API.
Do you have any recommendations on how to handle this situation?