MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / write_to

Function write_to

scripts/delete_import_items.py:88–94  ·  view source on GitHub ↗
(filepath, s, mode="w+")

Source from the content-addressed store, hash-verified

86
87
88def write_to(filepath, s, mode="w+"):
89 print(mode)
90 path = Path(filepath)
91 path.parent.mkdir(exist_ok=True, parents=True)
92
93 with path.open(mode=mode) as f:
94 f.write(s)
95
96
97def read_args_from_config(config_path):

Callers 1

runMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected