Directory varsa var, yeniden yaratmaya çalışma ki expeption yemeyelim...

This commit is contained in:
S.Çağlar Onur
2005-09-22 16:14:00 +00:00
parent 43fc66d6a4
commit f3d07aea0f
+4 -1
View File
@@ -146,7 +146,10 @@ class ArchiveZip(ArchiveBase):
ofile = os.path.join(target_dir, outpath)
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
# check that output dir is present