(self)
Cleanup backup files.
Cleanup backup files.
Cleanup backup files .
def cleanup(self):
        """Cleanup backup files."""
        rmtree(self.backup_path)
        while os.path.exists(self.backup_path):
            sleep(0.1)
        self.logger.debug(f"Backup dir {self.backup_path} cleared")
def cleanup ( self ) : rmtree ( self . backup_path ) while os . path . exists ( self . backup_path ) : sleep ( 0.1 ) self . logger . debug ( f"Backup dir {self.backup_path} cleared" )