SFTPSensor

SFTP

Waits for a file or directory to be present on SFTP.

View on GitHub

Last Updated: Feb. 28, 2023

Access Instructions

Install the SFTP provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

pathRequiredRemote file or directory path
file_patternThe pattern that will be used to match the file (fnmatch format)
sftp_conn_idThe connection to run the sensor against
newer_thanDateTime for which the file or file path should be newer than, comparison is inclusive

Documentation

Waits for a file or directory to be present on SFTP.

Was this page helpful?