0

I have a file file.tar.gz; how can I uncompress it with ruby to get the dir file?

on linux its easy to do this:

system("tar -xvzf file.tar.gz")

but is there any way to do this on windows with similar way or something else?

Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
Alex Zhang
  • 19
  • 3
  • http://stackoverflow.com/a/11505644/1520364 and other answers on that page – Karthik T Aug 22 '13 at 02:34
  • possible duplicate of [unzip (zip, tar, tag.gz) files with ruby](http://stackoverflow.com/questions/856891/unzip-zip-tar-tag-gz-files-with-ruby) – Blorgbeard Aug 22 '13 at 02:39

0 Answers0