ishiis opened a new issue, #34989:
URL: https://github.com/apache/airflow/issues/34989

   ### Apache Airflow version
   
   2.7.2
   
   ### What happened
   
   When source_path contains a wildcard, SFTPToGCSOperator succeeds if the file 
does not exist in the specified path.
   
   ### What you think should happen instead
   
   If the file does not exist, the operator should fail.
   
   ### How to reproduce
   
   1. Include wildcards in source_path.
   2. If the file does not exist in source_path, it will be reproduced.
   
   ```python
   SFTPToGCSOperator(
       task_id=f"sftp_to_gcs_task",
       gcp_conn_id="gcp_conn_id",
       sftp_conn_id="sftp_conn_id",
       source_path="/var/path/to/*",    # wildcard within source_path
       destination_bucket="my_bucket",
       destination_path="path/to"
   )
   ```
   
   ### Operating System
   
   GCP Container
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-google==10.5.0
   
   ### Deployment
   
   Google Cloud Composer
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to