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

Function WriteToTemporaryFile

deps/v8/tools/android-run.py:81–87  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

79 return arg if not ShouldEscape() else '"%s"' % (arg.replace('"', '\\"'))
80
81def WriteToTemporaryFile(data):
82 (fd, fname) = tempfile.mkstemp()
83 os.close(fd)
84 tmp_file = open(fname, "w")
85 tmp_file.write(data)
86 tmp_file.close()
87 return fname
88
89def Main():
90 if (len(sys.argv) == 1):

Callers 1

MainFunction · 0.85

Calls 3

closeMethod · 0.65
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…