MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / write_file

Function write_file

src/packagedcode/regen_package_docs.py:24–25  ·  view source on GitHub ↗
(file_path, content)

Source from the content-addressed store, hash-verified

22TEMPLATES_DIR = os.path.join(dirname(__file__), 'templates')
23
24def write_file(file_path, content):
25 file_path.open("w").write(content)
26
27
28def regenerate(

Callers 1

regenerateFunction · 0.70

Calls 2

writeMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected