@staticmethod
def get_quota_quota_command(text, folder):
    """
        Extract the quota from the quota command.

        Arguments:
        text - Text returned by quota command.
        folder - Mounted folder

        Return:
        None
        """
    write_value = False
    value_line = None
    for line in text:
        if write_value:
            value_line = line
            write_value = False
        else:
            pass
        if '{0}/'.format(folder.split('/')[0]) in line:
            write_value = True
        else:
            pass
    if value_line is None:
        raise KeyError
    size_list = []
    for value in value_line.split()[:2]:
        unit = value[-1]
        try:
            int(unit)
        except ValueError:
            size = value[:-1]
            if unit.startswith('M'):
                adjust = 1024 ** 2
            elif unit.startswith('G'):
                adjust = 1024
            elif unit.startswith('T'):
                adjust = 1
            elif unit.startswith('P'):
                adjust = 1 / 1024
            else:
                print(unit, 'unit of quota command not known!')
                print(
                    'Please contact the author of TranSPHIRE to fix this issue'
                    )
                raise KeyError
        else:
            adjust = 1024 ** 3
            size = value
        size_list.append(float(size) / adjust)
    return size_list[0], size_list[1]
