MCPcopy
hub / github.com/ChinaGodMan/UserScripts / get_md_files

Function get_md_files

utils/helper.py:27–31  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

25
26# 找md文件,并排除特定文件,不直接获取含有`README`字符的文件,以防未来增加新功能.
27def get_md_files(directory):
28 file = read_json("utils/docs/excluded_json_files.json")
29 excluded_files = file.get("files", [])
30 return [file for file in os.listdir(directory)
31 if file.lower().endswith('.md') and file.lower() not in [f.lower() for f in excluded_files]]
32
33
34# 读取文件到内存

Callers 8

mainFunction · 0.90
go_workFunction · 0.90
build_urlsFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
process_scriptFunction · 0.90

Calls 2

read_jsonFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected