cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you want to work on being more organized, your productivity or you want to use AI to make your life easier, we’ve got something for you right 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?