You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/07 08:17:19 UTC

[GitHub] [airflow] TobKed commented on a change in pull request #11284: Improve GCSToSFTPOperator paths handling

TobKed commented on a change in pull request #11284:
URL: https://github.com/apache/airflow/pull/11284#discussion_r500823119



##########
File path: airflow/providers/google/cloud/transfers/gcs_to_sftp.py
##########
@@ -52,6 +52,9 @@ class GCSToSFTPOperator(BaseOperator):
     :param destination_path: The sftp remote path. This is the specified directory path for
         uploading to the SFTP server.
     :type destination_path: str
+    :param ignore_gcs_path_in_destination: (Optional) When set to False the path of the file

Review comment:
       For example: If you want to copy file from bucket: `gs://bucket_name/data/2020/file.txt` to `/tmp` directory, by default it will be copied reflecting object path on the bucket, so file path on sftp will be `/tmp/data/2020/file.txt`. If parameter `ignore_gcs_path_in_destination` will be set to True the file path on sftp will be `/tmp/file.txt`.
   
   I am open for proposals for better name for this parameter :)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org