Fixes the last problem mentioned in issue1202.
This commit is contained in:
parent
595f7a5bf9
commit
2662733bce
|
@ -1121,7 +1121,7 @@ class ZipFile:
|
|||
self.fp.flush()
|
||||
if zinfo.flag_bits & 0x08:
|
||||
# Write CRC and file sizes after the file data
|
||||
self.fp.write(struct.pack("<lLL", zinfo.CRC, zinfo.compress_size,
|
||||
self.fp.write(struct.pack("<LLL", zinfo.CRC, zinfo.compress_size,
|
||||
zinfo.file_size))
|
||||
self.filelist.append(zinfo)
|
||||
self.NameToInfo[zinfo.filename] = zinfo
|
||||
|
|
Loading…
Reference in New Issue