from typing import List
from pathlib import Path


def glob_files(search_str: str, data_type: str) -> List:
    """Returns the list of files

    Args:
        search_str: String to find at start of filename
        data_type: Data type, folder with same name must exist in proc_test_data
    Returns:
        list: List of files found
    """
    data_type = data_type.upper()
    globule = (
        Path(__file__)
        .resolve(strict=True)
        .parent.parent.joinpath(f"data/proc_test_data/{data_type}/")
        .glob(f"{search_str}*")
    )

    files = [str(g) for g in globule]

    return files