-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Description
Description
There already exists an SFTPOperator (documentation here) which provides an easy way to read data from an SFTP Server to the local disk or write data to an SFTP server. However, for FTP and FTPS Servers, no such operator exists. Rather, there only exists ftp hooks and sensors (look within the airflow/airflow/providers/ftp directory, and compare to the airflow/airflow/providers/sftp directory).
Use case/motivation
I am hoping to provide the following two operators for Airflow Developers:
FTPOperator(
task_id="operation",
ftp_conn_id="ftp_default",
local_filepath="route_to_local_file",
remote_filepath="remote_route_to_copy",
operation="put",
dag=dag
)
FTPSOperator(
task_id="operation",
ftps_conn_id="ftps_default",
local_filepath="route_to_local_file",
remote_filepath="remote_route_to_copy",
operation="put",
dag=dag
)
The FTP Operator would connect to an FTP server with no encryption protocol, and will copy files from that server to local disk (if the operation is "get") or will copy a file on local disk to the server (if the operation is "put").
The FTPS Operator would do the same thing but for an FTP Server with TLS encryption protocol.
Related issues
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct