[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Looking for a Ruby library to untar a file.

Wayne Pierce

7/20/2006 4:20:00 AM

Does anyone know of a library to untar a file? I use Zlib to gunzip,
but can't find any file to untar the resulting data. Unfortunately I
can't get to www.ruby-lang.org right now (local network problem).

Thanks for any help,

Wayne

5 Answers

Thiago Jackiw

7/20/2006 4:35:00 AM

0

Wayne,

I don't think you need a library just to untar the a file, you can
simply run `tar xzvf FILE` inside your ruby app and that should do it.

Thiago


On 7/19/06, shalofin@gmail.com <shalofin@gmail.com> wrote:
> Does anyone know of a library to untar a file? I use Zlib to gunzip,
> but can't find any file to untar the resulting data. Unfortunately I
> can't get to www.ruby-lang.org right now (local network problem).
>
> Thanks for any help,
>
> Wayne
>
>
>

Erik Veenstra

7/20/2006 8:42:00 AM

0

Have a look at tarrubyscript.rb in tar2rubyscript.tar.gz [1].
It might be a good start. Although I'm not sure it can
handle every kind of TAR file...

By the way, that code was written by from Thomas Hurst, long
time ago...

Oh, it's not a library; it's code.

gegroet,
Erik V. - http://www.erikve...

[1] http://www.erikve...tar2rubyscript/index.html


Wayne Pierce

7/20/2006 9:59:00 AM

0

Thiago,

I wish I could, unfortunately I am stuck on Windows for this one and
the only compression/decompression I can count on is the built-in
version Microsoft has.

Wayne

Thiago Jackiw wrote:
> Wayne,
>
> I don't think you need a library just to untar the a file, you can
> simply run `tar xzvf FILE` inside your ruby app and that should do it.
>
> Thiago
>
>
> On 7/19/06, shalofin@gmail.com <shalofin@gmail.com> wrote:
> > Does anyone know of a library to untar a file? I use Zlib to gunzip,
> > but can't find any file to untar the resulting data. Unfortunately I
> > can't get to www.ruby-lang.org right now (local network problem).
> >
> > Thanks for any help,
> >
> > Wayne
> >
> >
> >

Wayne Pierce

7/20/2006 10:01:00 AM

0

Erik,

Thanks for the link, I'll see if I can do something with it...who knows
maybe it will end up as a library.

Wayne


Erik Veenstra wrote:
> Have a look at tarrubyscript.rb in tar2rubyscript.tar.gz [1].
> It might be a good start. Although I'm not sure it can
> handle every kind of TAR file...
>
> By the way, that code was written by from Thomas Hurst, long
> time ago...
>
> Oh, it's not a library; it's code.
>
> gegroet,
> Erik V. - http://www.erikve...
>
> [1] http://www.erikve...tar2rubyscript/index.html

Mauricio Fernández

7/20/2006 10:45:00 AM

0

On Thu, Jul 20, 2006 at 01:25:14PM +0900, shalofin@gmail.com wrote:
> Does anyone know of a library to untar a file? I use Zlib to gunzip,
> but can't find any file to untar the resulting data. Unfortunately I
> can't get to www.ruby-lang.org right now (local network problem).

http://raa.ruby-lang.org/projec...

Get it from http://rubyforge.org/frs/?g... or
gem install archive-tar-minitar

--
Mauricio Fernandez - http://eige... - singular Ruby