Description:
This processor writes FlowFiles to the local file system.
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. If a property has a default value, it is indicated. If a property supports the use of the NiFi Expression Language (or simply, "expression language"), that is also indicated.
- Directory
- The local file path to the location where files should be written. You may use expression language such as /aa/bb/${path}.
- Default value: no default
- Supports expression language: true
- Keep Directory Structure
- A Boolean value (true/false), indicating whether to maintain the file structure and write FlowFiles to subdirectories of the file path defined in the Directory property.
Note: This property is maintained for backward compatibility purposes but is considered "Deprecated" and should not be used (value should remain 'false').
Rather than using this property, if the goal is to append the FlowFile's path to the
/aa/bb directory
, for example, the Directory
property should
instead be set to /aa/bb/${path}
.
- Default value: false
- Supports expression language: false
- Conflict Resolution Strategy
- Indicates what should happen if the processor cannot write a file to the file path defined in the Directory property. This could happen, for example, if a file of the same name already exists in the directory. Valid options can be selected from the drop-down menu and include:
- Default value: fail
- Supports expression language: false
- Maximum File Count
- The maximum number of files that can exist in the output directory.
- Default value: no default
- Supports expression language: false
- Last Modified Time
- Sets the lastModifiedTime on the output file to the value of this attribute. Format must be yyyy-MM-dd'T'HH:mm:ssZ. You may also use expression language such as ${file.lastModifiedTime}.
- Default value: no default
- Supports expression language: true
- Permissions
- Sets the read/write/execute permissions on the output file to the value of this attribute. Format must be either UNIX rwxrwxrwx with a - in place of denied permissions (e.g. rw-r--r--) or an octal number (e.g. 644). You may also use expression language such as ${file.permissions}.
- Default value: no default
- Supports expression language: true
- Owner
- Sets the owner on the output file to the value of this attribute. You may also use expression language such as ${file.owner}. Normal access rules apply, meaning your system may not let you change file ownership.
- Default value: no default
- Supports expression language: true
- Group
- Sets the group on the output file to the value of this attribute. You may also use expression language such as ${file.group}. Normal access rules apply, meaning your system may not let you change group ownership.
- Default value: no default
- Supports expression language: true
Relationships:
- failure
- If something prevents a FlowFile from being written to its destination directory, then it follows this relationship.
- success
- If a FlowFile is successfully written to its destination directory, then it follows this relationship.