You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
jundo
7 years agoExplorer | Level 3
How to get a path to a Dropbox file in order to use the files_download function in python?
As a real newbye in python I'm trying to download a single file from my dropbox account. I've got the Dropbox token and written such a function: def download_file():
dbx = dropbox.Dr...
- 7 years ago
Yes, that's all that is required. The path would be the remote path to the desired file inside the Dropbox account. For example, for a file named "myfile.txt" inside a folder named "Documents", the path would be "/documents/myfile.txt".
You can also get these values from the API, e.g., using files_list_folder and files_list_folder_continue. (Call files_list_folder with the path "" to list the root.) You would use the resulting Metadata.path_lower for the desired file.
Greg-DB
Dropbox Staff
Yes, that's all that is required. The path would be the remote path to the desired file inside the Dropbox account. For example, for a file named "myfile.txt" inside a folder named "Documents", the path would be "/documents/myfile.txt".
You can also get these values from the API, e.g., using files_list_folder and files_list_folder_continue. (Call files_list_folder with the path "" to list the root.) You would use the resulting Metadata.path_lower for the desired file.
jundo
7 years agoExplorer | Level 3
That is it!
I wrongly wrote the pathname with backslash (doubled of course),..
Thanks.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,911 PostsLatest Activity: 21 minutes agoIf 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 or Facebook.
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!