code: def rename(self, rename_pair_list, **kwargs):
          
          foo = []
          for path, newname in rename_pair_list:
              foo.append({'path': path,
                          'newname': newname
                          })
  
          data = {'filelist': json.dumps(foo)}
          params = {
              'opera': 'rename'
          }
  
          url = 'http://{0}/api/filemanager'.format(BAIDUPAN_SERVER)
          logging.debug('rename ' + str(data) + 'URL:' + url)
          return self._request('filemanager', 'rename', url=url, data=data, extra_params=params, **kwargs)
docs: 重命名
  
          :param rename_pair_list: 需要重命名的文件(夹)pair （路径，新名称）列表,如[('/aa.txt','bb.txt')]
          :type rename_pair_list: list