MCPcopy Index your code
hub / github.com/nodejs/node / write_file

Function write_file

tools/prepare_lief.py:90–93  ·  view source on GitHub ↗
(path: Path, content: str)

Source from the content-addressed store, hash-verified

88
89
90def write_file(path: Path, content: str):
91 ensure_dir(path.parent)
92 with open(path, 'w', encoding='utf-8') as f:
93 f.write(content)
94
95
96def parse_version_tuple(version: str):

Callers 3

mainFunction · 0.85
compile_templatesMethod · 0.85
compile_templatesMethod · 0.85

Calls 3

ensure_dirFunction · 0.85
openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…