BuildScript/scripts/TouchinBuild/commands/BaseBackupCommand/DeleteBackupCommand.py

11 lines
273 B
Python

import shutil
from commands.BaseBackupCommand.BaseBackupCommand import BaseBackupCommand
class DeleteBackupCommand(BaseBackupCommand):
def __init__(self):
BaseBackupCommand.__init__(self)
def execute(self):
shutil.rmtree(self.backupDirAbsPath, ignore_errors=True)