Forum Discussion

Ed-'s avatar
Ed-
Explorer | Level 4
8 years ago

/copy_batch

Hello,

 

I'm performing some test with /copy_batch, and I found that if I add two copies of the same file, for example:

 

"from_path":"/folder1/file1.txt","to_path":"/folder1/file2.txt"
"from_path":"/folder1/file1.txt","to_path":"/folder1/file3.txt"

 

I get this error:

{".tag":"failed","failed":{".tag":"duplicated_or_nested_paths"}}

 

I think this must be a bug, because it shouldn't be a problem to have the same source path is in more than one entry of the list.

It is only the destination path that shouldn't be repeated.

 

  • Ed-'s avatar
    Ed-
    Explorer | Level 4

    Only for Move it would be a problem, but not for Copy.

      • Tom A.5's avatar
        Tom A.5
        New member | Level 2

        This bug seems to still be there. 

         

        I can't make two copies of a file that is up on dropbox already, i get {".tag":"failed","failed":{".tag":"duplicated_or_nested_paths"}}

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 16 minutes ago
351 Following

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!