Get Files
looks for files and places them in result rows one by one
Processing
For each input row, the step recursively searches for files and folders inside a given base path. Results are generated for each individual file.
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 | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path |
string | A string containing the absolute path of the current file. | |||||||||||||||||||||||||||||||||
name |
string | A string containing the name the current file. | |||||||||||||||||||||||||||||||||
size |
long | The size of the current file in bytes. | |||||||||||||||||||||||||||||||||
is_file |
boolean | True if the current file is a regular file, false otherwise. | |||||||||||||||||||||||||||||||||
is_dir |
boolean | True if the current file is a directory, false otherwise. | |||||||||||||||||||||||||||||||||
mtime |
datetime | The last modified time of the current file. | |||||||||||||||||||||||||||||||||
info |
dict |
A dict containing attributes the current file.
The following attributes are always provided:
Additional attributes might be present if provided by the underlying filesystem. |