rubyzip/zippy - extract in place

322 Views Asked by At

Simple I think but can't seem to find something that works. Using either rubyzip or zippy.

I need to extract "path/to/my/file.zip to "path/to/my/file"

Documentation is quite slim for either gems.

1

There are 1 best solutions below

4
On

Why don't you just call the gunzip process?

system("gunzip -S '.zip' file.jpeg.zip")

No need to use/install any gem.