We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
Alek S.
10 years agoNew member | Level 1
Downloading all the files in a folder using CoreSDK
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 partic...
Alek S.
10 years agoNew member | Level 1
Thing is, this is a replacement for the Dropbox Datastores (thanks again /s), which were always synced to the device, so yes, I do need all the files in that folder ;)
The gist of what I'm doing and plan on doing is:
1) App starts up
2) App loads the metadata for 1 particular folder where these 10k json files are stored
3) LoadMetadata finishes, with 1 metadata object (called metadata) that has a member called contents, which has 10k items in it.
4) for var m in metadata.contents { addToLoadFileQueueIfNecessary(m) }
5) 1 by 1 go through the queue, loading each file.
6) poll to check if there are any changes and repeat.
Its a bit odd that it always happens at file number 172, so perhaps there's something wrong with that file. Weird if there is because loadMetadata is called right before really.
Part of me was wondering whether because I'm creating all of the DBRequests but not starting them. That perhaps once the queue has reached further down the list, they timeout immediately when I try to start them, because they were created X seconds ago. But its still too odd that its always 172 files.
I'll take a closer look tomorrow though, thanks for your help Gregory.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 years agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!