I'm looking for a library to read/write TAR files. I've had a look on RubyForge and searched for one on Google but found nothing (except an old library that doesn't seem to be maintained anymore). Does anyone know such a library?
I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?
Are you willing to make system calls? I ask because if you do it in pure
Ruby, it will not be very fast. Tar does quite a lot of intensive
processing, and if you try to integrate the compression schemes it uses,
all the more so.
I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?
Thanks
Do they have to be tar files, or can they be zips?
Archive::Tar::Minitar is a pure-Ruby library and command-line
utility that provides the ability to deal with POSIX tar(1) archive
files.
I've used it several times with great success.
enjoy,
-jeremy
···
On Fri, Dec 01, 2006 at 06:30:12AM +0900, Michel Casabianca wrote:
Hello,
I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?
Yes. Archive::Tar::Minitar. If I ever get TRUG hackathons going again,
we'll be moving forward on a libarchive port to Ruby.
What do you need?
-austin
···
On 11/30/06, Michel Casabianca <michel.casabianca@gmail.com> wrote:
I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?
I already generate zip files (and prefer this format over tar.gz), but I want to be able to generate tar files in a system independant way (that's why I don't call it using system).
Thanks
···
Le 1 déc. 06 à 04:29, El Gato a écrit :
Michel Casabianca wrote:
I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?
Do they have to be tar files, or can they be zips?
I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?
Archive::Tar::Minitar is what you're looking for I believe. Its part of
the ruwiki project.
On 11/30/06, Michel Casabianca <michel.casabianca@gmail.com> wrote:
I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?
Yes. Archive::Tar::Minitar. If I ever get TRUG hackathons going again,
we'll be moving forward on a libarchive port to Ruby.