We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
rahulj1
3 years agoExplorer | Level 4
Access Shared folder in Drop Box
I need assistance with making an API call to extract a report from a Dropbox shared folder. The objective is to retrieve the folder structure along with specific metadata such as the file count, fold...
Greg-DB
Dropbox Community Moderator
3 years agorahulj1 To list the contents of a folder using the Dropbox Python SDK, you would use the files_list_folder and files_list_folder_continue methods.
A "path/not_found" Dropbox API error indicates that there was nothing currently found at the specified path in the connected account. For example, this can happen if there's a mistake or typo in the path value the app supplies, if the folder has been renamed, moved, or deleted from that path, if the app is not connected to the correct account for that particular path, etc.
When specifying the path, make sure you provide the full and accurate path for the desired folder under the relevant root. For example, if you have a folder named "folder", the path would be "/folder". You can find more information on path formats here. I also recommend reading the File Access Guide. And as Здравко said, you can start by listing the contents of the root by starting with a path of the empty string "".
By the way, the Dropbox API doesn't return the specific pieces of metadata you mentioned for folders themselves (as opposed to specific files), so you'd need to list the folder contents and count/sort the contents to determine those.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!