cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn more 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

Greg-DB
Dropbox Staff
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
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?