symlink pörtlemesin

This commit is contained in:
S.Çağlar Onur
2005-09-29 08:24:33 +00:00
parent 01406c155b
commit 107a1a3a68
+3
View File
@@ -160,6 +160,9 @@ class ArchiveZip(ArchiveBase):
if info.external_attr == self.symmagic:
target = zip_obj.read(info.filename)
# remove target file we might be overwriting
if os.path.exists(target):
os.remove(target)
os.symlink(target, ofile)
else:
perm = info.external_attr