Archive Files
Creates a compressed folder archive
Processing
For each input row, the step creates an archive file from a given directory.
Settings
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Folder to archive |
string |
The folder to archive Relative paths are interpreted as relative to the flow file. Evaluated for each input row |
|||||||||||||||||||||||||||||||||
Include Patterns |
list or string |
A string or list of strings indicating a whitelist of folder contents to include in the archive. If no include patterns are given, all folder contents are included. If any include patterns are given, files to be included in the archive must match at least one pattern. The full path of each file is matched. The pattern is a regular expression. PathMatcher syntax can also be used. Examples:
Evaluated for each input row |
|||||||||||||||||||||||||||||||||
Exclude Patterns |
list or string |
A string or list of strings indicating a blacklist of folder contents to exclude from the archive. Exclude patterns are processed after include patterns. If no exclude patterns are given, no exclusions are made. If any exclude patterns are given, files to be excluded from the archive must match at least one pattern. The full path of each file is matched. The pattern is a regular expression. PathMatcher syntax can also be used. Examples:
Evaluated for each input row |
|||||||||||||||||||||||||||||||||
Filter |
function |
A custom filter function of the form:
The filter function is applied to all remaining entries after inclusion and exclusion patterns. If no filter function is given, all entries are included. If a filter function is given, it is called for each candidate entry.
Evaluated for each input row The following attributes are always provided:
Additional attributes might be present if provided by the underlying filesystem. |
|||||||||||||||||||||||||||||||||
Archive Format |
string |
Determines what type of archive to create:
Evaluated for each input row |
|||||||||||||||||||||||||||||||||
Archive File |
string |
The archive file to create. Relative paths are interpreted as relative to the flow file. Evaluated for each input row |
|||||||||||||||||||||||||||||||||
If Exists |
string |
Determines the course of action when an archive file already exists:
Evaluated for each input row |
|||||||||||||||||||||||||||||||||
Test Mode |
boolean |
If checked, the step logs which files would be included in an archive, but does not actually create an archive file. If unchecked, the step creates the archive file as configured. Evaluated for each input row |
Results
This step does not provide any results.