MCPcopy
hub / github.com/fastapi/fastapi / write_file

Function write_file

tests/test_frontend.py:17–19  ·  view source on GitHub ↗
(path: Path, content: str)

Source from the content-addressed store, hash-verified

15
16
17def write_file(path: Path, content: str) -> None:
18 path.parent.mkdir(parents=True, exist_ok=True)
19 path.write_text(content)
20
21
22def record_dependency(calls: list[str], name: str):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…