cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

Finding parent folder of file

Finding parent folder of file

krupal
Explorer | Level 3

Hi Support,

 

I want to find parent folder of files. Currently, I am using list_folders api using curl in php which gives me all data but I am unable to differentiate which files are under which parent folder. 

 

Please suggest me way to find that

1 Reply 1

Greg-DB
Dropbox Staff
The response from the list_folder endpoints will give you a list of file and folder entries. Each one will contain a `path_lower` value, which will be something like: "/Documents/document.docx". You can see the parent path components by splitting those out. E.g., in this sample, the "document.docx" file is in the "Documents" folder.
Need more support?
Who's talking

Top contributors to this post

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