Forum Discussion

Sam F.6's avatar
Sam F.6
New member | Level 2
8 years ago

SwiftyDropbox - Get MediaMetadata Count

Currently I have to take the user's dropbox and read through their files counting the images they have. I wasn't sure if there was a better way or a method I could use that you have setup? 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    [Cross-linking for reference: https://github.com/dropbox/SwiftyDropbox/issues/158 ]

     

    That sounds like the only way to do that. The Dropbox API doesn't offer a way to just get the count of media information, so you'd need to listFolder through the entries you're interested in and count the relevant ones.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 days ago
351 Following

If 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!