Create TarFile using string buffers

aurora00 at gmail.com aurora00 at gmail.com
Mon Mar 19 15:06:39 EDT 2007


I have a program that generates a number of files that will be
packaged into a tarball. Can I stream the content into TarFile without
first writing them out to the file system? All add(), addfile() and
gettarinfo() seems to assume there is a file in the disk. But for me I
seems inefficient to write all the content to the disk and then have
it read back by the TarFile module.

Thank you for your help

wy




More information about the Python-list mailing list