From f99cb5c765f0d398dcd84943f4698fcaa8a0f188 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 6 Dec 2013 14:12:03 +0000 Subject: [PATCH] feature(dropbox) add delete, cp, mv --- lib/client/storage/_dropbox.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/client/storage/_dropbox.js b/lib/client/storage/_dropbox.js index 3fb7bb8f..7b0cccb2 100644 --- a/lib/client/storage/_dropbox.js +++ b/lib/client/storage/_dropbox.js @@ -108,6 +108,18 @@ var CloudCmd, Util, DOM, Dropbox, cb, Client; writeFile(path, data, callback); }; + this.delete = function(path, callback) { + Client.delete(path, callback); + }; + + this.cp = function(from, to, callback) { + Client.copy(from, to, callback); + }; + + this.mv = function(from, to, callback) { + Client.move(from, to, callback); + }; + this.getToken = function() { return Client.credentials().token; };