zip açma sorunu (dosyalar yerine dizin oluşturuluyordu) çözüldü.

Fakat sembolik linklerde halen sorun var.
This commit is contained in:
Barış Metin
2005-06-15 09:14:42 +00:00
parent b23fe046e0
commit 674b583665
+8 -1
View File
@@ -49,13 +49,20 @@ class ArchiveZip(ArchiveBase):
fileNames = zip.namelist()
for file in fileNames:
ofile = self.targetDir + '/' + file
if not os.path.exists(ofile):
# a directory is present. lets continue
if os.path.isdir(ofile):
continue
# do we need to create parent directory for our file?
if not os.path.exists(os.path.dirname(ofile)):
os.mkdir(ofile)
continue
buff = open (ofile, 'wb')
fileContent = zip.read(file)
buff.write(fileContent)
buff.close()
zip.close()
class Archive: