dizin yoksa oluşturmamız gerkiyor.

fakat kodu biraz adam etmek gerekli...
This commit is contained in:
Barış Metin
2005-06-15 11:35:31 +00:00
parent 1e7b2bd8b1
commit 218f8f40f1
+2 -1
View File
@@ -25,7 +25,8 @@ class ArchiveBase(object):
os.remove(os.path.join(root, name))
for name in dirs:
os.rmdir(os.path.join(root, name))
if not os.path.exists(self.targetDir):
os.makedirs(self.targetDir)
class ArchiveTarFile(ArchiveBase):
def __init__(self, type, fileName, targetDir):