We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Gonzo345
8 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 ...
- 8 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.
JayPatel1992
Helpful | Level 5
Can I have much brief description of the solution and also example related to it if possible. Thanks.
Greg-DB
7 years agoDropbox Staff
JayPatel1992 I see you opened a new thread with more details, so I'll follow up there:
- JayPatel19927 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.
5,877 PostsLatest Activity: 12 months 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!