From d82dc61bfef84340291d0f35d34063bc444d224d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 6 Dec 2013 13:55:35 +0000 Subject: [PATCH] feature(dropbox) add save --- lib/client/storage/_dropbox.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/client/storage/_dropbox.js b/lib/client/storage/_dropbox.js index 6babc146..3cce3cb5 100644 --- a/lib/client/storage/_dropbox.js +++ b/lib/client/storage/_dropbox.js @@ -147,6 +147,13 @@ var CloudCmd, Util, DOM, Dropbox, cb, Client; }); }; + this.save = function(path, data, callback, query) { + if (query === '?dir') + DropBoxStore.mkDir(path, callback); + else + DropBox.writeFile(path, data, callback); + }; + this.writeFile = function(name, data, callback) { Client.writeFile(name, data, function(error, data) { var msg;