Directory varsa var, yeniden yaratmaya çalışma ki expeption yemeyelim...
This commit is contained in:
+4
-1
@@ -146,7 +146,10 @@ class ArchiveZip(ArchiveBase):
|
|||||||
ofile = os.path.join(target_dir, outpath)
|
ofile = os.path.join(target_dir, outpath)
|
||||||
|
|
||||||
if is_dir: # this is a directory
|
if is_dir: # this is a directory
|
||||||
os.makedirs(os.path.join(target_dir, info.filename))
|
try: # To get rid of Error:[Errno 17] File exists: errors
|
||||||
|
os.makedirs(os.path.join(target_dir, info.filename))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# check that output dir is present
|
# check that output dir is present
|
||||||
|
|||||||
Reference in New Issue
Block a user