Boş dizinleri zip'e ekliyor fakat açarken oluşturmuyorduk..
This commit is contained in:
+4
-3
@@ -126,7 +126,7 @@ class ArchiveZip(ArchiveBase):
|
|||||||
if pred(info.filename): # check if condition holds
|
if pred(info.filename): # check if condition holds
|
||||||
|
|
||||||
# below code removes that, so we find it here
|
# below code removes that, so we find it here
|
||||||
isdir = info.filename.endswith('/')
|
isDir = info.filename.endswith('/')
|
||||||
|
|
||||||
# calculate output file name
|
# calculate output file name
|
||||||
if archiveRoot == '':
|
if archiveRoot == '':
|
||||||
@@ -141,8 +141,9 @@ class ArchiveZip(ArchiveBase):
|
|||||||
|
|
||||||
ofile = os.path.join(targetDir, outpath)
|
ofile = os.path.join(targetDir, outpath)
|
||||||
|
|
||||||
if isdir: # a directory is present.
|
if isDir: # a directory is present.
|
||||||
continue # FIXME: do nothing!
|
os.mkdir(os.path.join(targetDir, info.filename))
|
||||||
|
continue
|
||||||
|
|
||||||
# check that output dir is present
|
# check that output dir is present
|
||||||
util.check_dir(os.path.dirname(ofile))
|
util.check_dir(os.path.dirname(ofile))
|
||||||
|
|||||||
Reference in New Issue
Block a user