-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Labels
Description
const _7z = require('node-7z');
const myStream = _7z.list('C:\\Downloads.zip',
{ recursive: true, "$cherryPick": ['*.txt*', '*.js'] });
const _data = [];
myStream
.on('data', function(d){
console.log(d);
_data.push(d);
})
.on('end', function (d) {
console.log("end", _data);
res.send({_data, info: myStream.info});
}).on('error', function (d) {
console.log("error:", d);
res.send(d);
})Excuse me, could you take a look?
I can see a pop console windows, it shows the content. But the data is empty.
When I run the _7z.extractFull, it extracts the file. But the console data does not goes to data either.