MCPcopy Index your code
hub / github.com/FSoft-AI4Code/HyperAgent / save_infos_to_folder

Function save_infos_to_folder

src/hyperagent/utils.py:271–275  ·  view source on GitHub ↗
(infos_dict, name, folder)

Source from the content-addressed store, hash-verified

269 return position["character"] + len("".join(doc.splitlines(True)[: position["line"]]))
270
271def save_infos_to_folder(infos_dict, name, folder):
272 if not os.path.exists(folder):
273 os.makedirs(folder)
274 with open(folder + "/" + name + ".json", "w") as f:
275 json.dump(infos_dict, f, indent=4)
276
277def get_file_paths_recursive(directory):
278 file_paths = []

Callers 1

setupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected