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