

def _req_files_add(self, pid, cname):
    '\n        Add a directory\n        :param str pid: parent directory id\n        :param str cname: directory name\n        '
    url = (self.web_api_url + '/add')
    data = locals()
    del data['self']
    req = Request(method='POST', url=url, data=data)
    res = self.http.send(req)
    if res.state:
        return req.content
    else:
        raise RequestFailure('Failed to access files API.')

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py API._req_files_add/VarMisuse@74/129 `res`->`req`