Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
GFunk
5 years agoExplorer | Level 3
API Copy/Sync two folders in dropbox account
I have a simple requirement that I'm really struggling to get working.
We need to sync up several (100+) directories with their subdirectories (all under the same account). For eg:
Source...
Greg-DB
Dropbox Community Moderator
5 years agoI recommend reading the "Detecting Changes Guide" here:
https://www.dropbox.com/lp/developers/reference/detecting-changes-guide
That covers the options for efficiently detecting and listing just the changes that have occurred since you last checked, e.g., using the "cursor" functionality on /2/files/list_folder[/continue]. For cases where you can't just copy the folder in its entirety, you could use that to determine what specific items need to be copied.
Also, for the actual copying, when you have multiple items to copy, you can use the /2/files/copy_batch_v2 endpoint to do so in bulk:
https://www.dropbox.com/developers/documentation/http/documentation#files-copy_batch
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!