import re


def enumerate_destination_file_name(destination_file_name):
    """
    Append a * to the end of the provided destination file name.
    Only used when query output is too big and Google returns an error
    requesting multiple file names.
    """
    if re.search(r'\.', destination_file_name):
        destination_file_name = re.sub(
            r'\.', f'_*.', destination_file_name, 1)
    else:
        destination_file_name = f'{destination_file_name}_*'
    return destination_file_name