cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API Copy Folder Error

API Copy Folder Error

Fenoma
Helpful | Level 6
Go to solution

Hi, i succesfuly copy files from one folder to another with the copy_v2, but when I try to copy a whole folder, it throws me an error: 

 

{"error_summary": "from_lookup/malformed_path/.", "error": {".tag": "from_lookup", "from_lookup": {".tag": "malformed_path"}}}

 

Let's say that I want to copy the folder "content" from "folderA" to "folderB", and folderB doesn't have a "content" folder. The paths i'm using are like this:

$from = "/root/folderA/content/";

$to = "/root/folderB/";

 

I don't understand what Am I doing wrong. I also try with:

 

$from = "root/folderA/content/";

$to = "/root/folderB/content/";

 

but it didn't work neither.

1 Accepted Solution

Accepted Solutions

Fenoma
Helpful | Level 6
Go to solution

I found the solution. Just need to remove the last  "/" from both paths.

 

Bottom line, It should be this way to copy folders:

 

$from = "root/folderA/content";

$to = "/root/folderB/content";

 

Thanks!!

View solution in original post

1 Reply 1

Fenoma
Helpful | Level 6
Go to solution

I found the solution. Just need to remove the last  "/" from both paths.

 

Bottom line, It should be this way to copy folders:

 

$from = "root/folderA/content";

$to = "/root/folderB/content";

 

Thanks!!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Fenoma Helpful | Level 6
What do Dropbox user levels mean?