简体   繁体   中英

rubyzip/zippy - extract in place

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.

Why don't you just call the gunzip process?

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

No need to use/install any gem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM