mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Always use ZIP_STORED compress type for directory entries
This commit is contained in:
parent
21979dad96
commit
b3b901ac45
@ -1197,6 +1197,8 @@ class ZipFile:
|
||||
arcname += '/'
|
||||
zinfo = ZipInfo(arcname, date_time)
|
||||
zinfo.external_attr = (st[0] & 0xFFFF) << 16L # Unix attributes
|
||||
if isdir:
|
||||
zinfo.compress_type = ZIP_STORED
|
||||
if compress_type is None:
|
||||
zinfo.compress_type = self.compression
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user