MCPcopy Create free account
hub / github.com/nodejs/node / _write

Function _write

deps/v8/tools/dev/gm.py:382–385  ·  view source on GitHub ↗
(filename, content, log=True)

Source from the content-addressed store, hash-verified

380
381
382def _write(filename, content, log=True):
383 if log:
384 print(f"# echo > {filename} << EOF\n{content}EOF")
385 filename.write_text(content)
386
387
388def _notify(summary, body):

Callers 2

buildMethod · 0.70

Calls 1

printFunction · 0.50

Tested by

no test coverage detected