We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
XiangZhou
3 years agoNew member | Level 2
How to merge two folders with Dropbox.Net SDK?
Dear support, To rename a folder, I call the MoveV2Async(pathOld, pathNew). If the pathNew exists, it fails with an error "to/conflict/folder/". If the destination folder already exists, ...
Здравко
3 years agoLegendary | Level 20
Hi XiangZhou,
As seems, there is no option to 'merge' files/folders using move by now. What you can do depends on what exactly you want achieve. If you just want to replace the existing folder, it becomes easy - delete the existing folder and move there the desired one (on the follow up try, after the remove). In such a way entire content of existing folder will gone (doesn't matter are there parts that don't overlap). If you want to keep non overlapping parts, you have to implement recursive algorithm that walk through the folder tree of the source folder and perform try move (eventually followed by delete and move) for files only. At the end, you'll need remove the source folder (there will be eventually empty subfolders only). If you want to merge files content further, then some content specific algorithms will also need as a part of the recursion.
Hope this gives direction.
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!