GCP python ドキュメントには、次の機能を持つスクリプトがあります。
def upload_pyspark_file(project_id, bucket_name, filename, file):
"""Uploads the PySpark file in this directory to the configured
input bucket."""
print('Uploading pyspark file to GCS')
client = storage.Client(project=project_id)
bucket = client.get_bucket(bucket_name)
blob = bucket.blob(filename)
blob.upload_from_file(file)
複数の引数(ファイル名)を受け取って GCS バケットにアップロードする引数解析関数をスクリプトに作成しました。上記の関数を適応させて、これらの複数の引数を解析し、それらのファイルをアップロードしようとしていますが、続行する方法がわかりません。私の混乱は、上記の「ファイル名」および「ファイル」変数にあります。特定の目的のために関数をどのように適応させることができますか?