ERP_Preprocessor / utils /file_utils.py
hariqueen's picture
Upload 5 files
afd0a81 verified
raw
history blame contribute delete
381 Bytes
"""
ํŒŒ์ผ ๊ธฐ๋ณธ ์ฒ˜๋ฆฌ ์œ ํ‹ธ๋ฆฌํ‹ฐ
"""
import os
from typing import Dict, Any
def ensure_directory_exists(dir_path: str) -> None:
"""
๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์—†์œผ๋ฉด ์ƒ์„ฑ
Args:
dir_path: ์ƒ์„ฑํ•  ๋””๋ ‰ํ† ๋ฆฌ ๊ฒฝ๋กœ
"""
if not os.path.exists(dir_path):
os.makedirs(dir_path)
print(f"๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ: {dir_path}")