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
ecy5maa
8 years agoNew member | Level 2
Detect file or folder in Objective C API v2
Appologies if this has been asked before, but I could not find anything here.
I am looking to differentiate between files and folders in my application. In API v1 I could use the DBMetadata object and use the isDirectory function.
But I am not sure how to accomplish this here.
Would be greatly obliged if someone can guide me how to achieve this.
Regards
- Greg-DBDropbox StaffYou can check the type of the object using isKindOfClass, as shown here:
https://github.com/dropbox/dropbox-sdk-obj-c#response-handling-edge-cases
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 60 minutes 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!