FileSensor

Apache Airflow Certified

Waits for a file or folder to land in a filesystem.

View on GitHub

Last Updated: May. 7, 2021

Access Instructions

Install the Apache Airflow provider package into your Airflow environment.

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

Parameters

fs_conn_idstrreference to the File (path) connection id
filepathRequiredstrFile or folder name (relative to the base path set within the connection), can be a glob.

Documentation

Waits for a file or folder to land in a filesystem.

If the path given is a directory then this sensor will only return true if any files exist inside it (either directly, or within a subdirectory)

Was this page helpful?