Create TarFile using string buffers
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Mar 20 06:18:58 EDT 2007
En Mon, 19 Mar 2007 21:55:30 -0300, aurora00 at gmail.com
<aurora00 at gmail.com> 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