cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Not happy with your Spotify Wrapped? Check out how Kevin on the Dropbox team used Paper to make sure he keeps discovering new music over 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: 
1
Ask
2
Reply and help

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
Who's talking

Top contributors to this post

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