We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

Snakou's avatar
Snakou
Explorer | Level 3
6 years ago

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 ?

 

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    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

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 8 hours ago
410 Following

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 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!