def search(cookie, tokens, key, path='<STR_LIT:/>'):
url = '<STR_LIT>'.join([<EOL>const.PAN_API_URL,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', path,<EOL>'<STR_LIT>', key,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', util.latency(),<EOL>'<STR_LIT>', tokens['<STR_LIT>'],<EOL>])<EOL>req = net.urlopen(url, headers={'<STR_LIT>': cookie.header_output()})<EOL>if req:<EOL><INDENT>content = req.data<EOL>return json.loads(content.decode())<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
搜索全部文件, 根据文件名.

    key - 搜索的关键词
    path - 如果指定目录名的话, 只搜索本目录及其子目录里的文件名.