Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
suzuka
8 years agoExplorer | Level 4
Get parent folder
Is there any way to get parent folder from child file or folder metadata.
Greg-DB
Dropbox Community Moderator
8 years agosuzuka If you have the metadata for a file or folder, e.g., as returned by /2/files/get_metadata, that will include a path_lower, like:
"/homework/math/prime_numbers.txt"
You can parse the path to get the parent folder, e.g., in this example:
"/homework/math"
You can then use /2/files/get_metadata again with that path to get the full metadata for that.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!