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

Function _Write

deps/v8/tools/dev/update-compile-commands.py:45–47  ·  view source on GitHub ↗
(filename, content)

Source from the content-addressed store, hash-verified

43 return subprocess.call(cmd, shell=True)
44
45def _Write(filename, content):
46 with open(filename, "w") as f:
47 f.write(content)
48
49def PrepareBuildDir(arch, mode):
50 build_dir = os.path.join("out", f"{arch}.{mode}")

Callers 2

PrepareBuildDirFunction · 0.85
UpdateCompileCommandsFunction · 0.85

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected