Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
efu
7 years agoNew member | Level 2
C# CopyBatchV2Async Method not working as expected
The CopyBatchV2Async documentation states that it can "Copy multiple files or folders to different locations at once in the user's Dropbox." So that means that if I specify FromPath as a folder, and...
- 7 years ago
You can use CopyBatchV2Async to copy files and/or folders. Note that this copies the item itself, e.g., the entire folder including the folder itself, not only the folder's contents. The 'ToPath' should be the desired path of the copied item itself, not an existing folder.
E.g., if you want to make a copy of an existing folder at "/MyFolder", you could specify a 'ToPath' value of "/MyFolderCopy", for instance. That would make a copy of "MyFolder", as well as anything inside it, at that "/MyFolderCopy" path. Make sure there isn't already something at the new path, e.g., "/MyFolderCopy", though.
Also, be sure to drill down into the RelocationBatchV2JobStatus.Complete object though, as it doesn't necessarilly mean everything succeeded; only that the job completed. Check each RelocationBatchResultEntry to see the specific results.
Greg-DB
Dropbox Community Moderator
7 years agoYou can use CopyBatchV2Async to copy files and/or folders. Note that this copies the item itself, e.g., the entire folder including the folder itself, not only the folder's contents. The 'ToPath' should be the desired path of the copied item itself, not an existing folder.
E.g., if you want to make a copy of an existing folder at "/MyFolder", you could specify a 'ToPath' value of "/MyFolderCopy", for instance. That would make a copy of "MyFolder", as well as anything inside it, at that "/MyFolderCopy" path. Make sure there isn't already something at the new path, e.g., "/MyFolderCopy", though.
Also, be sure to drill down into the RelocationBatchV2JobStatus.Complete object though, as it doesn't necessarilly mean everything succeeded; only that the job completed. Check each RelocationBatchResultEntry to see the specific results.
- efu7 years agoNew member | Level 2
Okay, thank you. The issue was that I was trying to copy some new files into an existing folder that already contained some other files.
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!