Chris Lount
Chris Lount
I think it depends on how you measure progress? If you are counting number of files extracted you can just iterate over the directory instead of using extract? ``` const...
No, the directory.files array will include all files in the archive. The file.path will include the full path of the file including subdirectories.
I'm pretty certain there is no standardized cross-platform way of preserving file permissions in a zip archive? There are different implementations of this, but they're solution and platform specific.
The file permissions are an attribute of the filesystem on which the zip file was created, and they're system specific. Windows NTFS, MacOS APFS, linux ext4 all have their own...
I use it with Typescript, but have to add my own definition file. I'll try to make a pull request on definitelyTyped this week so that you can install @types/xml-flow
Just FYI, pull request raised [https://github.com/DefinitelyTyped/DefinitelyTyped/pull/50841](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/50841) Once accepted you can `npm install @types/xml-flow` to use with typescript.
There is something wrong with your zip file. I use `curl -o corrupted.zip https://github.com/ZJONSSON/node-unzipper/files/5149151/corrupted.zip` And this code `const fs = require("fs");` `const unzip = require("unzipper");` `` let inStream = fs.createReadStream("./corrupted.zip");`...
Can't you just do: ``` http.get("file-url", (res) => { const zip = res.pipe(unzipper.Parse({forceStream: true})); for await (const entry of zip) { // etc etc } }); ```