def mkdir(cookie, tokens, path):
url = '<STR_LIT>'.join([<EOL>const.PAN_API_URL, <EOL>'<STR_LIT>',<EOL>'<STR_LIT>', tokens['<STR_LIT>'],<EOL>])<EOL>data = '<STR_LIT>'.join([<EOL>'<STR_LIT>', encoder.encode_uri_component(path),<EOL>'<STR_LIT>',<EOL>])<EOL>req = net.urlopen(url, headers={<EOL>'<STR_LIT>': cookie.header_output(),<EOL>'<STR_LIT>': const.CONTENT_FORM_UTF8,<EOL>}, data=data.encode())<EOL>if req:<EOL><INDENT>content = req.data<EOL>return json.loads(content.decode())<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
创建一个目录.

    path 目录名, 绝对路径.
    @return 返回一个dict, 里面包含了fs_id, ctime等信息.