fix: make parents if missing (#312)

This commit is contained in:
aclist 2026-05-27 04:38:00 +09:00
parent ac9f582def
commit 162839672b

View File

@ -14,6 +14,7 @@ def read_json(path: Path) -> Any:
def write_json(data: dict[str, Any], path: Path) -> None:
try:
path.parent.mkdir(parents=True, exist_ok=True)
j = json.dumps(data, indent=2)
path.write_text(j)
except Exception as e: