From 2e03dbd4e06ba5ff49520518ad5bfdeb97096ac4 Mon Sep 17 00:00:00 2001 From: Arnaud Ysmal Date: Wed, 12 Mar 2014 19:22:05 +0100 Subject: [PATCH] Fix copy --- dropbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dropbox.go b/dropbox.go index c3626a2..2f07e93 100644 --- a/dropbox.go +++ b/dropbox.go @@ -741,9 +741,9 @@ func (db *Dropbox) Copy(src, dst string, isRef bool) (*Entry, error) { var rv Entry params := &url.Values{"root": {db.RootDirectory}, "to_path": {dst}} if isRef { - params.Set("from_path", src) - } else { params.Set("from_copy_ref", src) + } else { + params.Set("from_path", src) } err := db.doRequest("POST", "fileops/copy", params, &rv) return &rv, err