We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Robert S.138
10 years agoHelpful | Level 7
Creating a folder in Dropbox
Is there a sample of creating a folder in Dropbox from the Android Java SDK for Core API v2? The example of uploading files seems to deal only with the root folder. I have a background task that ha...
Greg-DB
Dropbox Community Moderator
10 years agoHi Robert, just trying to create the folder and catching the exception is a fine way to handle this. It's as efficient as possible too, since it just requires the one API call.
If you do want to check ahead of time, you can use getMetadata. That will throw an exception if the folder doesn't exist though anyway, which you would need to catch.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!