MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / accumulatedKnowledgePath

Function accumulatedKnowledgePath

src/config/utils.py:217–226  ·  view source on GitHub ↗

Generate the name for the configuration file of the currently analyzed binary file. Args: bin_path (str, Optional): path to the compiled binary file (None by default) Return value: file name for the config file with the accumulated information

(bin_path=None)

Source from the content-addressed store, hash-verified

215 return (bin_path if bin_path is not None else disas_layer.inputFile()) + LOG_FILE_SUFFIX
216
217def accumulatedKnowledgePath(bin_path=None):
218 """Generate the name for the configuration file of the currently analyzed binary file.
219
220 Args:
221 bin_path (str, Optional): path to the compiled binary file (None by default)
222
223 Return value:
224 file name for the config file with the accumulated information
225 """
226 return (bin_path if bin_path is not None else disas_layer.databaseFile()) + KNOWLEDGE_FILE_SUFFIX
227
228def loadKnowledge(bin_path=None):
229 """Load the .json configuration for the current binary file, if exists.

Callers 4

mainFunction · 0.85
mainFunction · 0.85
loadKnowledgeFunction · 0.85
storeKnowledgeFunction · 0.85

Calls 1

databaseFileMethod · 0.45

Tested by

no test coverage detected