import os class DirectoryUtil: @staticmethod def check_directory_exists(path: str) -> bool: """检查目录是否存在""" return os.path.exists(path) @staticmethod def create_directory(path: str) -> None: """创建目录""" os.makedirs(path, exist_ok=True)