mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-13 18:28:14 +02:00
9 lines
223 B
Python
9 lines
223 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
def WriteTextFile(FilePath: Path, Content: str) -> None:
|
|
"""Overwrite a text file's contents on disk."""
|
|
FilePath.write_text(Content, encoding="utf-8")
|