Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
022dfd4709 | ||
|
|
71e08aacc3 | ||
|
|
337eca87f2 |
@@ -112,7 +112,7 @@ class FileDecompressor {
|
||||
|
||||
async unZip(filename, outputDir) {
|
||||
const zip = new ZipStreamer();
|
||||
return await await zip.unpack(filename, outputDir);
|
||||
return await zip.unpack(filename, outputDir);
|
||||
}
|
||||
|
||||
unBz2(filename, outputDir) {
|
||||
|
||||
@@ -57,6 +57,8 @@ class ZipStreamer {
|
||||
entryCallback = (entryCallback ? entryCallback : () => {});
|
||||
const unzip = new unzipStream({file: zipFile});
|
||||
|
||||
unzip.on('error', reject);
|
||||
|
||||
let files = [];
|
||||
unzip.on('extract', (en) => {
|
||||
const entry = {path: en.name, size: en.size, compressedSize: en.compressedSize};
|
||||
|
||||
Reference in New Issue
Block a user