mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Update adb.js
This commit is contained in:
parent
69d0c0d307
commit
428a386301
10
lib/adb.js
10
lib/adb.js
|
@ -59,6 +59,16 @@ function ADBObject() {
|
|||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
// download a file from target device
|
||||
this.pull = function(id, path) {
|
||||
return SHELL.exec([this.binPath, "-s", id, "pull", path, "data\\"]);
|
||||
};
|
||||
|
||||
// upload a file to target device
|
||||
this.push = function(id, filename, dstpath) {
|
||||
return SHELL.exec([this.binPath, "-s", id, "push", "data\\" + filename, dstpath]);
|
||||
};
|
||||
}
|
||||
|
||||
exports.create = function() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user