fix(operation) put back setListeners

This commit is contained in:
coderaiser 2016-10-27 20:32:57 +03:00
parent b2310cfa75
commit 41f7b8ee47

View file

@ -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);
};
});