Skip to content
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

OS X Archive Utility fails to extract zip file #14

Closed
joaomoreno opened this issue Mar 26, 2015 · 6 comments
Closed

OS X Archive Utility fails to extract zip file #14

joaomoreno opened this issue Mar 26, 2015 · 6 comments

Comments

@joaomoreno
Copy link
Contributor

With the latest version 2.2.0 the following code produces a zip file that OS X's Archive Utility cannot open:

var yazl = require('yazl');
var fs = require('fs');

var zipfile = new yazl.ZipFile();

var ostream = fs.createWriteStream('out.zip');
zipfile.outputStream.pipe(ostream);

zipfile.addBuffer(new Buffer('hello'), 'hello.txt');
zipfile.end();

screen shot 2015-03-26 at 20 51 24

System log

26/03/15 20:51:23.972 Archive Utility[29825]: bomCopierFatalError:Couldn't read pkzip signature.
26/03/15 20:51:23.973 Archive Utility[29825]: bomCopierFatalError:Not a central directory signature
@rickychien
Copy link

I ran into the same issue with Archive Utility but worked with The unarchiver or unzip xxx from terminal.

@thejoshwolfe
Copy link
Owner

I've reproduced this problem.

@thejoshwolfe
Copy link
Owner

@joaomoreno I believe I've fixed this issue. Please let me know if you run into any more trouble.

@rickychien
Copy link

@thejoshwolfe NPM package hasn't updated yet =)

@thejoshwolfe
Copy link
Owner

Ah, sorry. updated now.

@joaomoreno
Copy link
Contributor Author

Confirmed that it works for both Archive Utility and 7-Zip 9.20. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants