import glob
from pathlib import Path


def glob_tile_ids(pattern):
    """
    Get available tile folders.

    Parameters
    ----------
    pattern: str
        Pattern path to search for

    Returns
    -------
    as_list: list[Path]
        list of available file paths
    """
    tile_ids = glob.glob(pattern)
    return [Path(i).stem for i in tile_ids]