

def search(self, keyword, count=30):
    '\n        Search files or directories\n\n        :param str keyword: keyword\n        :param int count: number of entries to be listed\n        '
    kwargs = {
        
    }
    kwargs['search_value'] = keyword
    root = self.root_directory
    entries = root._load_entries(func=keyword._req_files_search, count=count, page=1, **kwargs)
    res = []
    for entry in entries:
        if ('pid' in entry):
            res.append(_instantiate_directory(self, entry))
        else:
            res.append(_instantiate_file(self, entry))
    return res

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py API.search/VarMisuse@46/103 `self`->`keyword`