Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/code/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def write_file(self, zinfo_or_arcname, file_object, compress_type=None):
zinfo.file_size = file_size

# Write updated header info, Write CRC and file sizes after the file data
fmt = '<LLLL'
# <QQQQ corresponds to C language's unsigned long long, supporting a single file > 4GB.
fmt = '<QQQQ'
self.fp.write(struct.pack(fmt, zipfile._DD_SIGNATURE, zinfo.CRC,
zinfo.compress_size, zinfo.file_size))

Expand Down