sebsauvage
Programmer
Hello !
I'm using the gzip module of Python.
I'm trying to know the original size of a file compressed in .gz.
How could I do this ?
Do I have to perform GzipFile()/seek(0,2)/tell() to know the original file size ? <yuk!>
Do I have to parse myself the gzip header ? <grin>
Or is there a smarter way of doing this ?
Thanks in advance.
I'm using the gzip module of Python.
I'm trying to know the original size of a file compressed in .gz.
How could I do this ?
Do I have to perform GzipFile()/seek(0,2)/tell() to know the original file size ? <yuk!>
Do I have to parse myself the gzip header ? <grin>
Or is there a smarter way of doing this ?
Thanks in advance.