MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / _write

Function _write

examples/pam_import_generator.py:244–247  ·  view source on GitHub ↗
(fpath: Path, content: str)

Source from the content-addressed store, hash-verified

242
243
244def _write(fpath: Path, content: str):
245 with fpath.open("w", encoding="utf-8") as fp:
246 fp.write(content)
247 print(f"Wrote {fpath}")
248
249
250def write_import_json(data: Dict[str, Any], path: str):

Callers 1

write_import_jsonFunction · 0.70

Calls 1

openMethod · 0.45

Tested by

no test coverage detected