import shutil


def zip_up_dir(folder_to_zip, zip_endpoint):
    """
    Creates a .zip file from a directory.
 
    Args:
        folder_to_zip (string): The location of the directory to create a zip file from.
        zip_endpoint (string): The place to put the finished zip.

    Returns:
        string: The location of the final .zip file.
    """
    shutil.make_archive(zip_endpoint, 'zip', folder_to_zip)
    return zip_endpoint + '.zip'