astro.files
Subpackages
Submodules
Package Contents
Functions
|
List file path from a remote object store or the local filesystem based on the given path pattern. |
- astro.files.get_file_list(path, conn_id, **kwargs)
List file path from a remote object store or the local filesystem based on the given path pattern. It is not advisable to fetch huge number of files since it would overload the XCOM and also, if you are using response of this method in dynamic task map
expand
method it can create huge number of parallel taskSupported filesystem: Supported File Location
Supported file pattern: Patterns in File path
- Parameters:
conn_id (str) – Airflow connection id. This will be used to identify the right Airflow hook at runtime to connect with storage services
path (str) – Path pattern to the file in the filesystem/Object stores
- Return type:
airflow.models.xcom_arg.XComArg