MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / write_to_file

Function write_to_file

Investigate.py:28–32  ·  view source on GitHub ↗

Writes content to a file, creating parent directories if they don't exist.

(path: str, content: str)

Source from the content-addressed store, hash-verified

26 path: Path, command: list[str], proc: subprocess.CompletedProcess[str]
27) -> None:
28 if command:
29 rendered_command = " ".join(command)
30 elif isinstance(proc.args, str):
31 rendered_command = proc.args
32 else:
33 rendered_command = " ".join(str(argument) for argument in proc.args)
34 path.write_text(
35 f"--- COMMAND ---\n{rendered_command}\n\n"

Callers 1

investigate_testFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected