from typing import List
from typing import Dict
from typing import Any


def make_dir_info(dir_name: str, sub_dirs: List[str] = [], parent_dir_path: str = '', current_path: str = '') -> Dict[str, Any]:
    """
    Make directory object to parse by fancytree.

    Args:
        dir_name (str): The directory name.
        sub_dirs (list): Sub directories of dir_name.
        parent_dir_path (str): Parent directory path of the subdirectory.
        current_path (str): Current path of the subdirectory.

    Returns:
        dict: The made directory object.
    """
    dir_info = {
        "title": dir_name,
        "expanded": True,
        "folder": True,
        "children": [],
    }
    if sub_dirs:
        dir_info['sub_dirs'] = sub_dirs

    if parent_dir_path:
        dir_info['parent_dir_path'] = parent_dir_path

    if current_path:
        dir_info['current_path'] = current_path

    return dir_info