

def get_storage_info(self, human=False):
    '\n        Get storage info\n\n        :param bool human: whether return human-readable size\n        :return: total and used storage\n        :rtype: dict\n\n        '
    res = self._req_get_storage_info()
    if human:
        res['total'] = humanize.naturalsize(res['total'], binary=True)
        res['used'] = humanize.naturalsize(res['used'], binary=True)
    return res

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py API.get_storage_info/original