File size: 381 Bytes
afd0a81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""

ํŒŒ์ผ ๊ธฐ๋ณธ ์ฒ˜๋ฆฌ ์œ ํ‹ธ๋ฆฌํ‹ฐ

"""
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}")