MCPcopy Create free account
hub / github.com/claroty/access_parser / read_db_file

Function read_db_file

access_parser/utils.py:213–218  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

211
212
213def read_db_file(path):
214 if not os.path.isfile(path):
215 LOGGER.error(f"File {path} not found")
216 raise FileNotFoundError(f"File {path} not found")
217 with open(path, "rb") as f:
218 return f.read()

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected