Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 5 commits
  • 1 file changed
  • 0 commit comments
  • 3 contributors
Showing with 7 additions and 2 deletions.
  1. +7 −2 dbox.js
View
9 dbox.js
@@ -291,16 +291,21 @@ exports.app = function(config){
},
cp: function(from_path, to_path, args, cb){
+ var from_param_key = "from_path";
if(cb == null){
cb = args
}else{
for(var attr in args)(function(attr){
- options[attr] = args[attr]
+ if (attr === "from_copy_ref"){
+ from_param_key = "from_copy_ref"
+ } else {
+ options[attr] = args[attr]
+ }
})(attr)
}
var params = sign(options)
params["root"] = params.root || root
- params["from_path"] = from_path
+ params[from_param_key] = from_path
params["to_path"] = to_path
var args = {
"method": "POST",

No commit comments for this range

Something went wrong with that request. Please try again.