Provider package for Apache Airflow that enables FTP file transfer protocol operations including hooks, operators, and sensors for workflow integration.
84
Build a tool that connects to an FTP server and retrieves detailed metadata about files and directories in a specified remote path. The tool should extract structured information about each item including its type, size, and timestamps.
Create a Python module that implements a function to retrieve structured directory listings from an FTP server. The function should:
@generates
def get_directory_metadata(ftp_conn_id: str, remote_path: str) -> dict:
"""
Retrieve structured metadata for all items in a remote FTP directory.
Args:
ftp_conn_id: The Airflow connection ID for the FTP server
remote_path: The path to the remote directory
Returns:
Dictionary mapping item names to their metadata attributes
"""
passProvides FTP operations support for Apache Airflow including connection management and file transfer capabilities.
Install with Tessl CLI
npx tessl i tessl/pypi-apache-airflow-providers-ftpevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10