cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Detect file or folder in Objective C API v2

Detect file or folder in Objective C API v2

ecy5maa
New member | Level 2

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

1 Reply 1

Re: Detect file or folder in Objective C API v2

Greg-DB
Dropboxer
You can check the type of the object using isKindOfClass, as shown here:

https://github.com/dropbox/dropbox-sdk-obj-c#response-handling-edge-cases
Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?