split-secret/scripts/classes/Cleanup.py

13 lines
593 B
Python
Raw Normal View History

from .AbstractSplittedSecret import AbstractSplittedSecret
class Cleanup(AbstractSplittedSecret):
def __init__(self):
2022-12-09 13:22:57 +01:00
super(Cleanup, self).__init__()
def deleteAllEncryptedFiles(self):
self.executeCommand('rm -v ' + self.decrypted_password_files_folder + '*')
print(self.getCommandString())
print(self.getOutputString())
2022-12-09 13:22:57 +01:00
self.executeCommand('rm -v ' + self.encrypted_splitted_password_files_folder + '*')
print(self.getCommandString())
print(self.getOutputString())
def deleteAll(self):
2022-12-09 13:22:57 +01:00
self.deleteAllEncryptedFiles()