gzip and file size
Steve Holden
sholden at holdenweb.com
Mon Nov 5 21:29:17 EST 2001
"ToddW" <taw_usenet at yahoo.com> wrote ...
> It's simple to get the correct file size for a file. But if it is
> gzipped, is there a simple way to snag the file size of the
> uncompressed file?
Use getinfo() or infolist() to get the description of an individual entry as
a ZipInfo object, and the file's size is the ZipInfo's file_size attribute.
regards
Steve
--
http://www.holdenweb.com/
More information about the Python-list
mailing list