* a/b/c.html diye bir dosya varsa arsivde daha onceden a
directory'sinin vs. yapilmis oldugunu varsayma
This commit is contained in:
Eray Özkural
2005-09-22 10:31:55 +00:00
parent b9f5b20347
commit 5b278c1083
2 changed files with 7 additions and 4 deletions
+6 -4
View File
@@ -145,17 +145,19 @@ class ArchiveZip(ArchiveBase):
ofile = os.path.join(target_dir, outpath)
if is_dir: # a directory is present.
os.mkdir(os.path.join(target_dir, info.filename))
if is_dir: # this is a directory
os.makedirs(os.path.join(target_dir, info.filename))
continue
# check that output dir is present
util.check_dir(os.path.dirname(ofile))
# remove output file we might be overwriting
if os.path.exists(ofile):
os.remove(ofile)
if info.external_attr == self.symmagic:
target = zip_obj.read(info.filename)
if os.path.exists(ofile):
os.remove(ofile)
os.symlink(target, ofile)
else:
perm = info.external_attr
+1
View File
@@ -26,6 +26,7 @@ class XmlFileTestCase(unittest.TestCase):
pisi.api.init(False)
def testMetaClass(self):
class OtherInfo:
__metaclass__ = xmlfile.autoxml
t_BirthDate = [types.StringType, xmlfile.mandatory]