EvanOxfeld / node-unzip

node.js cross-platform unzip using streams
MIT License
615 stars 343 forks source link

folder as file #119

Open ghost opened 6 years ago

ghost commented 6 years ago

I want to unzip the archive. in which there are files and folders.

Restore the same structure.

Files it unzip. and the folder shows as an empty file

fs.createReadStream(req.file.path).pipe(unzip.Extract({ path: 'output/'+req.file.path+'' }));
ryanhex53 commented 6 years ago

same problem