MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / check_file_exist

Function check_file_exist

util/config.py:20–22  ·  view source on GitHub ↗
(filename, msg_tmpl='file "{}" does not exist')

Source from the content-addressed store, hash-verified

18
19
20def check_file_exist(filename, msg_tmpl='file "{}" does not exist'):
21 if not osp.isfile(filename):
22 raise FileNotFoundError(msg_tmpl.format(filename))
23
24
25class ConfigDict(Dict):

Callers 1

_file2dictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected