from pathlib import Path


def get_list_of_files_in_dir(directory, file_types='*'):
    """
    Get list of certain format files.

    Args:
        directory (str): The input directory for image.
        file_types (str): The file_types to filter the files.
    """
    return [f for f in Path(directory).glob(file_types) if f.is_file()]