import csv


def write_archive_file(archivePath, files):
    """ 
    Writes archive file containing downloaded and extracted project file tuples! 
    
    Parameters
    ----------
    archivePath: str
        Path to the generated archive file.
    files: list
        Unordered List of the downloaded and extracted file tuples.
    
    Returns
    -------
    str
        Path of generated archive file.

    """
    with open(archivePath, 'a+') as fp:
        csvwriter = csv.writer(fp, delimiter=';')
        for f in files:
            csvwriter.writerow(list(f))
    return archivePath