Since you are deprecating the Datastore and Sync SDKs for iOS. I'll need to redo quite a bit of stuff. Anyway, one of the things I'll need to do now is:
I want to download all the files in a particular folder, this folder might have an order of 1000 or 10000 files (each around 500 or so bytes). The approach I'm taking is loadMetadata for a particular folder that contains these files. Then I iterate through the metadata.contents to loadFile for each one. These folders are flat, meaning there are no sub-folders below them. All they contain are a bunch of json files.
The problem I'm seeing atm is, when I try to download all of them using the Core SDK, even with a queueing mechanism it always fails after just 172 files. I've tried different approaches, but no matter what, 172 files is what it ends up with. The errors I get after this magical cut off relate to timeouts (error code -1001).
2015-10-01 14:51:25.601 Constructor[18334:922733] [WARNING] DropboxSDK: error making request to /1/files/sandbox/data/Hello/Stores/docs/f63a8f83b9cf13e0d8607748cecc6a9a76783c4ba209e122cb557c9e53b60ca4 - (-1001) Error Domain=NSURLErrorDomain Code=-1001 "(null)" UserInfo={path=/data/Hello/Stores/docs/f63a8f83b9cf13e0d8607748cecc6a9a76783c4ba209e122cb557c9e53b60ca4, rev=19a031bc0a88, destinationPath=/Users/skela/Library/Developer/CoreSimulator/Devices/5E17BFB4-E369-472B-AEFA-E9BB5D46BAF4/data/Containers/Data/Application/1C99C300-1128-423D-AB9F-170036FD8C2C/Documents/boxes/db/data/Hello/Stores/docs/f63a8f83b9cf13e0d8607748cecc6a9a76783c4ba209e122cb557c9e53b60ca4}
So I'm wondering, is there some kind of mechanism on your end that's only allowing me to download 172 files? If there is, how do I work around it?