M
Martin DeMello
Is there any pure-ruby way to pack multiple files into a single file,
and unpack them later? Compression is optional.
martin
and unpack them later? Compression is optional.
martin
Is there any pure-ruby way to pack multiple files into a
single file, and unpack them later? Compression is optional.
Martin DeMello said:Is there any pure-ruby way to pack multiple files into a single file,
and unpack them later? Compression is optional.
Is there any pure-ruby way to pack multiple files into a single file, and
unpack them later? Compression is optional.
martin
Is there any pure-ruby way to pack multiple files into a single file,
and unpack them later? Compression is optional.
As a matter of fact, you can use either Jamis Buck's tar.rb or my
forthcoming Archive::Tar::Minitar based on work by Mauricio Fernandez
(aka batsman).
That code has the nice property of working with IO-like objects and
being able to operate in 'streaming mode' (i.e. no seek/rewind calls),
which means you can compress as you write the tar.
For instance, in rpa-base, the following is done in one step, with no
intermediate files
data files,
lots of them =====> tar ====> gzip data.tar.gz
\_____ tar ==> .rpa file
/
metadata =====> gzip metadata.gz
you add data files to the "inner tar", which outputs to a GZipWriter,
which writes into the outer tar, which is being written to disk.
Austin Ziegler said:As a matter of fact, you can use either Jamis Buck's tar.rb or my
forthcoming Archive::Tar::Minitar based on work by Mauricio Fernandez
(aka batsman). I'm putting some finishing touches on documentation and
the command line utility, but:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.