Create TarFile using string buffers

Gabriel Genellina gagsl-py2 at
Tue Mar 20 11:18:58 CET 2007

En Mon, 19 Mar 2007 21:55:30 -0300, aurora00 at  
<aurora00 at> escribió:

> Thanks. It almost works. The problem is I don't know the size of the
> file until it has finished streaming. It looks like the tar file
> format need the file size written at the beginning :(

Yes, maybe because it's originally a tape format. Anyway it could be done;  
addfile() could seek back to the header and patch it after the file size  
is known...

Gabriel Genellina

More information about the Python-list mailing list