def ensure_path_exists(dir_path):
    """
    Make sure that a path exists
    """
    if not os.path.exists(dir_path):
        mkdir(dir_path)
        return True
    return False
Make sure that a path exists