def ensure_exists(path):
    """
    Make sure the given path exists

    :param path: The path that should be created if not exists
    :type path: pathlib.PosixPath

    :return: The existing path
    :rtype: pathlib.PosixPath
    """
    path.mkdir(parents=True, exist_ok=True)
    return path