dizin yoksa oluşturmamız gerkiyor.
fakat kodu biraz adam etmek gerekli...
This commit is contained in:
+2
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user