MCPcopy Create free account
hub / github.com/github/awesome-copilot / write

Function write

skills/python-pypi-package-builder/scripts/scaffold.py:35–38  ·  view source on GitHub ↗
(path: Path, content: str)

Source from the content-addressed store, hash-verified

33
34
35def write(path: Path, content: str) -> None:
36 path.parent.mkdir(parents=True, exist_ok=True)
37 path.write_text(textwrap.dedent(content).lstrip(), encoding="utf-8")
38 print(f" created {path}")
39
40
41def touch(path: Path) -> None:

Callers 1

scaffoldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected