mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(dropbox) add save
This commit is contained in:
parent
4605992cdf
commit
d82dc61bfe
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue