You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

efu's avatar
efu
New member | Level 2
6 years ago

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...
  • Greg-DB's avatar
    6 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.