(self)
return status.returncode == 0
Check if the repository contains keys
Check if the repository contains keys
Check if the repository contains keys
def repositoryHasKeys(self):
        """Check if the repository contains keys"""
        try:
            # If yes, check if it is a borg repository
            os.environ["BORG_PASSPHRASE"] = self.key
            args = [ 'borg', 'list', self.repositoryPath ]
            status = self.runCommand(args, "Checking if repository has keys")
        except:
            return False

        return status.returncode == 0
def repositoryHasKeys ( self ) : try : # If yes, check if it is a borg repository os . environ [ "BORG_PASSPHRASE" ] = self . key args = [ 'borg' , 'list' , self . repositoryPath ] status = self . runCommand ( args , "Checking if repository has keys" ) except : return False return status . returncode == 0