MCPcopy
hub / github.com/omkarcloud/botasaurus / refresh

Method refresh

bota/src/bota/package_storage.py:30–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 self.refresh()
29
30 def refresh(self):
31 self.json_path = get_cache_file_path()
32 self.json_data = {}
33
34 if not os.path.isfile(self.json_path):
35 self.commit_to_disk()
36
37 with open(self.json_path, "r") as json_file:
38 self.json_data = json.load(json_file)
39
40 def commit_to_disk(self):
41 with open(self.json_path, "w") as json_file:

Callers 1

__init__Method · 0.95

Calls 3

commit_to_diskMethod · 0.95
get_cache_file_pathFunction · 0.70
loadMethod · 0.45

Tested by

no test coverage detected