Forum Discussion

Ed-'s avatar
Ed-
Explorer | Level 4
9 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.

 

4 Replies

  • Ed-'s avatar
    Ed-
    Explorer | Level 4
    9 years ago

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

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

    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"}}

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    Yes, this is still open. I'll check in with the team on this and follow up here if/when I have any news.

About Dropbox API Support & Feedback

Node avatar for 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!