def METHOD_NAME(s3_connection_path: str, index_file_path: str) -> bool:
    """Creates an index of file paths that are in the provided s3 path.
    Returns:
        Returns True is the index got created and False if it wasn't
    """
    if s3_connection_path.startswith("/data/"):
        s3_connection_path = s3_connection_path[len("/data/") :]
    if s3_connection_path.startswith("s3://"):
        s3_connection_path = s3_connection_path[len("s3://") :]
    try:
        index_exists = _get_index(s3_connection_path, index_file_path)
    except KeyError:
        index_exists = False
    except Exception as exc:
        raise ValueError(f"Could not get index file with error: {exc}")
    # Fallback to creating an index from scratch
    if not index_exists:
        index_exists = _create_index(s3_connection_path, index_file_path)
    return index_exists