import glob


def _paths_from_dir(data_dir):
    """Seach directory for har metadata files"""
    runs = glob.glob(data_dir + "/*_rundata.json")
    blocks = glob.glob(data_dir + "/*_blockdata.json")
    pages = glob.glob(data_dir + "/*_pagedata.json")
    hars = glob.glob(data_dir + "/*.har")
    return (runs, blocks, pages, hars)