Skip to content

OS X Archive Utility fails to extract zip file #14

Closed
@joaomoreno

Description

@joaomoreno

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions