Samin061 commented on code in PR #68984:
URL: https://github.com/apache/airflow/pull/68984#discussion_r3485413709
##########
providers/amazon/src/airflow/providers/amazon/aws/transfers/s3_to_sftp.py:
##########
@@ -106,13 +107,34 @@ def get_s3_key(s3_key: str) -> str:
parsed_s3_key = urlsplit(s3_key)
return parsed_s3_key.path.lstrip("/")
+ def _validate_destination_path(self, destination: str) -> None:
Review Comment:
Good call. Pulled it into a single validate_destination_path(destination,
base_path, base_name=...) helper in aws/utils and dropped both copies; the
operators just pass their own sftp_path/ftp_path now.
--
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]