max-mapper / extract-zip

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

Why not relative path? #79

Closed simodelle closed 4 years ago

simodelle commented 5 years ago

I tried to comment these lines of code: /*if (path.isAbsolute(opts.dir) === false) { return cb(new Error('Target directory is expected to be absolute')) }*/ and if i put a relative path for target directory it works good (i need this). Why is it possible to put only absolute path for target directory?

malept commented 4 years ago

This was answered in https://github.com/maxogden/extract-zip/issues/43#issuecomment-302412488

mrcnski commented 3 years ago

For a project that is supposed to be dead-simple this is a pointless obstacle to usage. Somehow, node devs keep fudging something as simple as extracting a zip file into a given directory. Yay open source...?