mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:03:12 +02:00
Always use ZIP_STORED compress type for directory entries
This commit is contained in:
parent
21979dad96
commit
b3b901ac45
1 changed files with 2 additions and 0 deletions
|
|
@ -1197,6 +1197,8 @@ def write(self, filename, arcname=None, compress_type=None):
|
|||
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…
Reference in a new issue