def rename(self, rename_pair_list, **kwargs):
foo = []<EOL>for path, newname in rename_pair_list:<EOL><INDENT>foo.append({'<STR_LIT:path>': path,<EOL>'<STR_LIT>': newname<EOL>})<EOL><DEDENT>data = {'<STR_LIT>': json.dumps(foo)}<EOL>params = {<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>url = '<STR_LIT>'.format(BAIDUPAN_SERVER)<EOL>logging.debug('<STR_LIT>' + str(data) + '<STR_LIT>' + url)<EOL>return self._request('<STR_LIT>', '<STR_LIT>', url=url, data=data, extra_params=params, **kwargs)<EOL>
重命名

        :param rename_pair_list: 需要重命名的文件(夹)pair （路径，新名称）列表,如[('/aa.txt','bb.txt')]
        :type rename_pair_list: list