Kless
10/18/2008 9:33:00 PM
On 18 oct, 19:13, Adam Penny <adam_pe...@hotmail.com> wrote:
> Kless wrote:
> > Which is the best way to uncompress a 'tar.gz' file since Ruby?
>
> I'm not sure if I'm misunderstanding you, but wouldn't that be
>
> tar xvzf [filename]?
Better using Ruby:
----------------
tgz_file = Zlib::GzipReader.new( File.open(file, 'rb') )
Minitar.unpack(tgz_file, 'tgz_file')
----------------