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

Method DumpContentsOfFilePassedTo

deps/v8/tools/mb/mb.py:285–291  ·  view source on GitHub ↗
(arg_name, path)

Source from the content-addressed store, hash-verified

283 def DumpInputFiles(self):
284
285 def DumpContentsOfFilePassedTo(arg_name, path):
286 if path and self.Exists(path):
287 self.Print("\n# To recreate the file passed to %s:" % arg_name)
288 self.Print("%% cat > %s <<EOF" % path)
289 contents = self.ReadFile(path)
290 self.Print(contents)
291 self.Print("EOF\n%\n")
292
293 if getattr(self.args, 'input_path', None):
294 DumpContentsOfFilePassedTo(

Callers

nothing calls this directly

Calls 3

ExistsMethod · 0.95
PrintMethod · 0.95
ReadFileMethod · 0.95

Tested by

no test coverage detected