Skip to content

[question] list doesn' work #59

@hjyssg

Description

@hjyssg
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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions