import pathlib


def create_missing_dir(path):
    """Creates specified directory if one doesn't exist

    :param path: Directory path
    :type path: str
    :return: Path to directory
    :rtype: str
    """
    path = pathlib.Path(path)
    if not path.is_dir():
        path.mkdir()
    return path