File compare

Description

The File Compare action compares the contents of 2 files. It returns true if the files are equal, false if different.

When the contents of the files are the same the success outgoing hop will be followed, else the failure hop will be followed.

Options

Option Description

Action name

The name of the workflow action.

File name 1

The name and path of the file of the first file to compare.

File name 2

The name and path of the file of the second file to compare.

Add filename to result

Add the filenames for both files to the result.

Result

What this action passes on to the next action. See Action results for how results travel through a workflow.

Result Value

True

Both files exist and their contents are identical.

False

The contents differ, or a file name is not set: the number of errors is 0. A file does not exist, or a path is a folder: the number of errors is 1.

Result files

With Add filename to result, both files are added when both exist and are files, also when their contents differ. The result files of the previous action are kept.

Result rows

Passed on unchanged.