import glob


def get_filepaths(raw_data_path,extention_type):
    """
    Collect data's names as a list.
    
    Input:
        raw_data_path: string. Main data path that has .jpg and .xml files.
        extention_type: string. Ex: ".jpg", ".xml"
    Return:
        filename_list: list. list of the data's path.
    """
    filename_list = list()

    filename_list = glob.glob(raw_data_path + '/*{}'.format(extention_type))
    #for dirpath, dirnames, filenames in os.walk(raw_data_path):
    #    for fl in filenames:
    #        filename_list.append(fl)

    return filename_list