From 526ab3c3f6437810ff851cf9569288fd7d195cf2 Mon Sep 17 00:00:00 2001 From: seungyeoncherry Date: Sat, 7 Jun 2025 22:34:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95/test=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/report.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/report.py b/lib/report.py index ba8f1d3..48d010f 100644 --- a/lib/report.py +++ b/lib/report.py @@ -1,4 +1,5 @@ # save as data/report.csv +import os import csv from typing import List, Dict, Any @@ -6,6 +7,8 @@ from typing import List, Dict, Any # file path는 'data/report.csv'로 고정 def save_report(report_data: List[Dict[str, Any]], file_path: str = 'data/report.csv') -> None: + os.makedirs(os.path.dirname(file_path), exist_ok=True) + """ Save the report data to a CSV file.