diff --git a/scripts/commands/DeleteBackupCommand.py b/scripts/commands/DeleteBackupCommand.py index db69c71..6eb9735 100644 --- a/scripts/commands/DeleteBackupCommand.py +++ b/scripts/commands/DeleteBackupCommand.py @@ -10,6 +10,6 @@ class DeleteBackupCommand: def execute(self): baseDir = self.__pathProvider.resolveAbsPath('.') - dirs = [name for name in os.listdir(baseDir) if os.path.isdir(os.path.join(baseDir, name))] + dirs = [self.__pathProvider.resolveAbsPath(name) for name in os.listdir(baseDir) if os.path.isdir(os.path.join(baseDir, name)) & name.startswith('backup.')] for dir in dirs: shutil.rmtree(dir) \ No newline at end of file