Add a file to a compressed tarfile

Francesc Alted falted at openlc.org
Tue Nov 9 08:55:29 EST 2004


Dennis Hotson wrote:
> I managed to get my function working... although it decompresses
> everything and then compresses it back... Not the best, but good enough I
> think.

If you want a solution that allows to append files to an archive, while
allowing compression, take a look at FileNode, a module that has been added
to the latest PyTables package (www.pytables.org). You can see the
documentation (and tutorials) for the module here:

http://pytables.sourceforge.net/html-doc/c3616.html

It supports the zlib, ucl and lzo compressors, as well as the shuffle
compression pre-conditioner.

HTH,

Francesc Altet



More information about the Python-list mailing list