MCPcopy
hub / github.com/1Panel-dev/MaxKB / get_index_html

Function get_index_html

apps/maxkb/urls/web.py:83–87  ·  view source on GitHub ↗
(index_path)

Source from the content-addressed store, hash-verified

81
82
83def get_index_html(index_path):
84 file = open(index_path, "r", encoding='utf-8')
85 content = file.read()
86 file.close()
87 return content
88
89
90def get_all_files(directory):

Callers 1

page_not_foundFunction · 0.85

Calls 3

readMethod · 0.80
openFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected