Remove redundant variable
This commit is contained in:
+3
-4
@@ -439,14 +439,13 @@ 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
|
||||||
d = os.path.join(target_dir, outpath)
|
if not os.path.isdir(ofile):
|
||||||
if not os.path.isdir(d):
|
os.makedirs(ofile)
|
||||||
os.makedirs(d)
|
|
||||||
perm = info.external_attr
|
perm = info.external_attr
|
||||||
perm &= 0xFFFF0000
|
perm &= 0xFFFF0000
|
||||||
perm >>= 16
|
perm >>= 16
|
||||||
perm |= 0x00000100
|
perm |= 0x00000100
|
||||||
os.chmod(d, perm)
|
os.chmod(ofile, perm)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# check that output dir is present
|
# check that output dir is present
|
||||||
|
|||||||
Reference in New Issue
Block a user