mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix(operation) put back setListeners
This commit is contained in:
parent
b2310cfa75
commit
41f7b8ee47
1 changed files with 4 additions and 3 deletions
|
|
@ -85,8 +85,8 @@
|
|||
|
||||
copier.on('connect', function() {
|
||||
authCheck(copier, function() {
|
||||
setListeners(copier, callback);
|
||||
copyFn = function(data, callback) {
|
||||
setListeners(copier, callback);
|
||||
copier.copy(data.from, data.to, data.names);
|
||||
};
|
||||
});
|
||||
|
|
@ -103,8 +103,8 @@
|
|||
fn();
|
||||
remover.on('connect', function() {
|
||||
authCheck(remover, function() {
|
||||
setListeners(remover, callback);
|
||||
deleteFn = function(from, files, callback) {
|
||||
setListeners(remover, callback);
|
||||
from = from.replace(/\?.*/, '');
|
||||
remover.remove(from, files);
|
||||
};
|
||||
|
|
@ -122,12 +122,13 @@
|
|||
fn();
|
||||
packer.on('connect', function() {
|
||||
authCheck(packer, function() {
|
||||
setListeners(packer, callback);
|
||||
packFn = function(data, callback) {
|
||||
setListeners(packer, callback);
|
||||
packer.pack(data.from, data.to, data.names);
|
||||
};
|
||||
|
||||
extractFn = function(data, callback) {
|
||||
setListeners(packer, callback);
|
||||
packer.extract(data.from, data.to);
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue