def upload_file(client, bucket_name, file_name, path_to_blob=None):
    """ Uploads a file to a bucket, if the file is empty no uploads are created"""
    bucket = client.get_bucket(bucket_name)
    if path_to_blob is None:
        path_to_blob = file_name
    blob2 = bucket.blob(path_to_blob)
    blob2.upload_from_filename(filename=file_name)
