mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
69240e00a4
commit
773190867a
@ -202,7 +202,7 @@ def _extractall(f, path=None, file_info=None):
|
|||||||
# .
|
# .
|
||||||
fname = header.filename.replace(os.sep, '/')
|
fname = header.filename.replace(os.sep, '/')
|
||||||
fname = os.path.splitdrive(fname)[1]
|
fname = os.path.splitdrive(fname)[1]
|
||||||
parts = [x for x in fname.split('/') if x not in {'', os.path.pardir, os.path.curdir}]
|
parts = tuple(x for x in fname.split('/') if x not in {'', os.path.pardir, os.path.curdir})
|
||||||
if not parts:
|
if not parts:
|
||||||
continue
|
continue
|
||||||
if header.uncompressed_size == 0:
|
if header.uncompressed_size == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user