One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Snakou
5 years agoExplorer | Level 3
How to go through a shared folder and move some of them to a new folder within the shared folder
Hi,
I am currently looking for a way to get the files from a shared folder link and move the recent ones to a folder inside the same directory.
Then, I have to download all the files inside that directory.
Can you help me with this please ?
- Greg-DB
Dropbox Staff
To list the contents of a folder, you should use /2/files/list_folder[/continue]. You can use that to list the contents of a folder in the connected account, or to list the contents of a folder for which you have a shared link (by setting the 'shared_link' parameter on the /2/files/list_folder call).
To move files from one location to another inside the connected account, you should use /2/files/move_v2. Note that you can't modify or move the contents of a folder if you only have a shared link for the folder, and not access to the folder itself.
To download files from the connected account, you should use /2/files/download. To download files from a shared link, you should use /2/sharing/get_shared_link_file.
By the way, those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 3 hours ago
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 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!