* default directory temizlemeyi kaldir, soyle use case'ler var:

bir seyler cikar
   bir seyler daha cikar
   root directory'e cikar :) <-- root diri silmek cok parlak olmadi
                                 allahtan user mode'da calisiyoruz :)
* fix: ofile degil fileName'in sonuna bakmak gerekiyor dir mi degil mi anlamak
  icin
This commit is contained in:
Eray Özkural
2005-06-24 16:29:29 +00:00
parent 8617263c07
commit 0ba1872931
+2 -2
View File
@@ -21,7 +21,7 @@ class ArchiveBase(object):
self.filePath = filepath
self.type = atype
def unpack(self, targetDir, cleanDir=True):
def unpack(self, targetDir, cleanDir=False):
self.targetDir = targetDir
# first we check if we need to clean-up our working env.
if os.path.exists(self.targetDir):
@@ -128,7 +128,7 @@ class ArchiveZip(ArchiveBase):
print 'ofile ', ofile
# a directory is present. lets continue
if ofile[len(ofile)-1]=='/':
if fileName.endswith('/'):
continue
# check that output dir is present