Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Gonzo345
9 years agoHelpful | Level 5
Best practice to check if a folder exists in .NET?
Hi there!
I'm asking myself what's the best practice to check if a folder exists, because I made a fudge in the meanwhile and the performance is not optimal.
I'm giving the option to our ...
- 9 years agoWe recommend using GetMetadataAsync to check if any particular file or folder already exists. It will return the metadata if so, or raise an exception you can catch if not.
GetMetadataAsync would also be better than SearchAsync as searching is subject to an indexing delay.
In either case though, there's going to be a race condition between checking (either via metadata or search) and then uploading. That being the case, check out the write mode options for uploading which offer different ways of handling conflicts.
Greg-DB
Dropbox Community Moderator
8 years agoJayPatel1992 I see you opened a new thread with more details, so I'll follow up there:
JayPatel1992
8 years agoHelpful | Level 5
That's so great of you. Thank you so much.
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!