Find Files
Looks for files and returns a list of all found files
Processing
For each input row, the step recursively searches for files and folders inside a given base path.
Settings
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
Filesystem |
dict |
The filesystem to use. If the filesystem is Evaluated for each input row |
||||||
Base Path |
string |
The base path to start looking for files. Relative paths are interpreted as relative to the flow file. Evaluated for each input row |
||||||
Match Files |
boolean |
If Evaluated for each input row |
||||||
Match Folders |
boolean |
If Evaluated for each input row |
||||||
Pattern |
string |
The pattern to match. Only matching files are included in the result. The full path of each file system entry is tested. A pattern can take the following forms:
Evaluated for each input row |
||||||
Filter |
function |
Function of the form The function is invoked with each found file after a successful pattern match, and is intended to filter out files based on additional criteria like file size etc. If Evaluated for each input row |
||||||
Max Depth |
long |
The maximum depth when descending into folders. If Evaluated for each input row |
||||||
On Error |
string |
Determines the course of action when an I/O error happens during directory traversal:
Evaluated for each input row |
Results
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
files |
list |
A list of dicts containing attributes of the found files.
The following attributes are always provided:
Additional attributes might be present if provided by the underlying filesystem. |
|||||||||||||||||||||||||||||||||
paths |
list | A list of strings containing the absolute paths of found files. |