MCPcopy Create free account
hub / github.com/comaps/comaps / check_text

Function check_text

tools/python/check_store_metadata.py:144–151  ·  view source on GitHub ↗
(path, max, optional=False, ignoreEmptyFilesAndNewLines=False)

Source from the content-addressed store, hash-verified

142 return ok, text
143
144def check_text(path, max, optional=False, ignoreEmptyFilesAndNewLines=False):
145 try:
146 return done(path, check_raw(path, max, ignoreEmptyFilesAndNewLines)[0])
147 except FileNotFoundError as e:
148 if optional:
149 return True
150 error(path, 'not exists')
151 return False
152
153def check_url(path, ignoreEmptyFilesAndNewLines=False):
154 if not os.path.exists(path):

Callers 2

check_androidFunction · 0.85
check_iosFunction · 0.85

Calls 3

doneFunction · 0.85
check_rawFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected