MCPcopy
hub / github.com/521xueweihan/HelloGitHub / check_path

Function check_path

script/make_content/make_content.py:33–41  ·  view source on GitHub ↗

检查路径是否存在

(path)

Source from the content-addressed store, hash-verified

31
32
33def check_path(path):
34 """
35 检查路径是否存在
36 """
37 if not os.path.exists(path):
38 print('not exist: {path}'.format(path=path))
39 return False
40 else:
41 return True
42
43
44def read_file(input_path):

Callers 1

make_contentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected