MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / get_file_content

Function get_file_content

apps/common/utils/common.py:186–189  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

184
185
186def get_file_content(path):
187 with open(path, "r", encoding='utf-8') as file:
188 content = file.read()
189 return content
190
191
192def sub_array(array: List, item_num=10):

Callers 15

get_toolsMethod · 0.90
get_toolsMethod · 0.90
MigrationClass · 0.90
pageMethod · 0.90
pageMethod · 0.90
is_validMethod · 0.90
listMethod · 0.90
pageMethod · 0.90
listMethod · 0.90
pageMethod · 0.90

Calls 2

readMethod · 0.80
openFunction · 0.50

Tested by

no test coverage detected