from pathlib import Path


def output_path(slug: str) -> Path:
    """Setup the Folder path for posts

    Args:
     slug: the slug for the post

    Returns:
     path object for output folder
    """
    OUTPUT_PATH = Path(f"files/posts/{slug}")
    if not OUTPUT_PATH.is_dir():
        OUTPUT_PATH.mkdir()
    return OUTPUT_PATH