Closed jayproulx closed 8 years ago
Done, v0.0.6
I just gave this a run through, it looks like the issue is still there.
https://github.com/jayproulx/decompress-zip-perms
Do you know what the issue might be? I can have a look and send a pull request.
Oh, I'm really sorry, I replied to the wrong thread
Setting permissions on the output files is not implemented yet, basically. It shouldn't be too hard to figure out because I do actually work out what the file permissions should be at https://github.com/bower/decompress-zip/blob/master/lib/structures.js#L92 but don't use that when creating the files (https://github.com/bower/decompress-zip/blob/master/lib/extractors.js#L81 is just one place we create files)
E.g.
node -e "var DecompressZip = require('decompress-zip'), unzipper = new DecompressZip('blah.zip'); unzipper.extract({ path: './blah' });"
My executable files in ./blah are rw-r--r--, should be rwxr-xr-x