-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zip is not working #16
Comments
def interesting that you get two different sizes. i actually use 7-zip to test the archives and the results under master pass its tests. I haven't tried out the examples fully yet so will make a note to do that. in regards to async, its pretty common to use with this module, but i will see about putting together an example now that we shouldn't need to wait on files before calling |
can you by chance provide the zips files you got? also MD5 and SHA really don't make sense because file dates vary. |
Sure:
And both files are 0 bytes long. |
thanks. there is a PR and some changes coming to examples until then i'd recommend using v0.3 for production. but thanks for the heads up. |
have been able to recreate this. appears to be something with multiple files and zip, tar example passes all 7zip tests.. will investigate further. |
def think this is an issue with the change to way it handles streams asap. cause its only streams (with multiple in zips) that don't appear to properly work. |
ok, if you could give latest version a go. basically, the issue had to do with the change to making zip push to buffer asap when using streams. what it was doing was calling deflate and the callbacks would sometimes not fire in order causing a corrupt file. |
Hi,
I've just started using master version of your module and have found out that it is not possible to decompress created out.zip file from example/pack.js file (I've tried to get back test1.txt and test2.txt using 7-zip).
i was testing using NodeJs 0.8.14 and NodeJS 0.9.9 on Linux.
On NodeJS 0.8.14 I've got out.zip file size 931 bytes and on Node 0.9.9 I've got size 662 bytes.
I'm using async 0.2.5, lodash 0.10 and readeable-stream 0.2.0.
Can you please provide in pack.js example information (comment) about what is the expected output file size and MD5/SHA256 checksum?
Also can you provide an additional example without async library?
The text was updated successfully, but these errors were encountered: