Reads the contents of a file from disk and streams it into the contents of an incoming FlowFile. Once this is done, the file is optionally moved elsewhere or deleted to help keep the file system organized.
local, files, filesystem, ingest, ingress, get, source, input
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
Name | Default Value | Allowable Values | Description |
---|---|---|---|
File to Fetch | ${absolute.path}/${filename} | The fully-qualified filename of the file to fetch from the file system Supports Expression Language: true | |
Completion Strategy | None |
| Specifies what to do with the original file on the file system once it has been pulled into NiFi |
Move Destination Directory | The directory to the move the original file to once it has been fetched from the file system. This property is ignored unless the Completion Strategy is set to "Move File". If the directory does not exist, it will be created. Supports Expression Language: true | ||
Move Conflict Strategy | Rename |
| If Completion Strategy is set to Move File and a file already exists in the destination directory with the same name, this property specifies how that naming conflict should be resolved |
Name | Description |
---|---|
not.found | Any FlowFile that could not be fetched from the file system because the file could not be found will be transferred to this Relationship. |
failure | Any FlowFile that could not be fetched from the file system for any reason other than insufficient permissions or the file not existing will be transferred to this Relationship. |
permission.denied | Any FlowFile that could not be fetched from the file system due to the user running NiFi not having sufficient permissions will be transferred to this Relationship. |
success | Any FlowFile that is successfully fetched from the file system will be transferred to this Relationship. |