Evaluate files metrics
Description
The Evaluate files metrics action can be used to evaluate the size or count of files.
Options
General tab
| Option | Description |
|---|---|
Action name |
The name of the workflow action. |
Source files |
The source type.
Based on the selected option, the fields below will be enabled/disabled. |
Wildcard |
A regex wildcard. |
File Result field |
With Previous result row: the name of the result row field that holds the file or folder. |
Wildcard result field |
With Previous result row: the name of the field that holds the wildcard. Optional. |
Include subfolders result field |
With Previous result row: the name of the field that says whether to include subfolders ( |
Evaluate |
Type of evaluation
|
File/Folder source |
The file or folder path. |
Wildcard |
A regex wildcard. |
Add |
Add the source to the Files/Folders list. |
File… |
Browse the filesystem for a file. |
Folder… |
Browse the filesystem for a folder. |
Files/Folders |
A list of files and/or folders. |
Delete |
Delete a source from the list. |
Edit |
Edit a source. |
After specifying a folder and wildcard (regular expression), use the Add button to add your file/folder selection to the table. Use the Delete or Edit buttons to remove or edit selected lines in the table.
Advanced tab
| Option | Description |
|---|---|
Scale |
|
Success when |
|
Value |
The value to compare. |
Result
What this action passes on to the next action. See Action results for how results travel through a workflow.
| Result | Value |
|---|---|
True |
The total size (in the selected Scale) or the number of files meets the Success when condition. Errors don’t change this: a path that does not exist counts as an error, but with a total of 0 the condition can still be met, and the action is then true with errors. |
False |
The condition is not met. The action also stops and is false, with 1 error, when the Files/Folders list is empty, or with Previous result row when the field set in File Result field is not in the result rows. |
Result files |
Passed on unchanged. With Filenames result, the files evaluated are the result files of the previous action whose whole name matches Wildcard. |
Result rows |
Passed on unchanged. With Previous result row, the file or folder, the wildcard and the include subfolders flag come from the result row fields named in File Result field, Wildcard result field and Include subfolders result field. |
| With Filenames result, an invalid regular expression in Wildcard stops the workflow with an error, and no hop is followed. |