max-mapper / extract-zip

Zip extraction written in pure JavaScript. Extracts a zip into a directory.
BSD 2-Clause "Simplified" License
388 stars 126 forks source link

Windows requires admin rights for creating symlinks #27

Open marcelklehr opened 8 years ago

marcelklehr commented 8 years ago

This throws when I'm not running node as admin: https://github.com/maxogden/extract-zip/blob/master/index.js#L152

I think a sane fallback would be to just copy the file contents of the original file. This is what windows' native unzip does, afaik.

marcelklehr commented 8 years ago

It appears hard links don't require privileges: https://github.com/npm/fstream/blob/master/lib/link-writer.js#L34