hudsonm62/Compare Action 🔃

📂 Simply compares 2 paths to see if they are the same or different. Supports globs, dates, and a handful of ignores.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
path1The first path to compareyes—
path2The second path to compareyes—
excludeRelative [minimatch](https://github.com/isaacs/minimatch) Glob pattern to filter out - Specify multiple patterns by separating with a comma (i.e. "`**/*.js,**/*.ts`").no—
includeRelative [minimatch](https://github.com/isaacs/minimatch) Glob pattern to filter in - Specify multiple patterns by separating with a comma (i.e. "`**/*.js,**/*.ts`").no—
compare_sizeIf true, will compare the size of the files (always first).yestrue
compare_contentIf true, will compare the content of the files.yestrue
compare_symlinksIf true, compares symbolic links directly instead of their targets.yesfalse
log_pathThis is the path to write the log file. Only turns on file logging if this is set. Doesn't discriminate between `\` and `/`.no—
error_sameError if the inputs are the same (no diff). If no-error is set, this is ignored.nofalse
no_errorDisable errors. Simply outputs results.nofalse
warn_insteadIf true, replaces any diff-related failing errors with just a warning.nofalse
output_diffIf true, outputs each compare result to console (matched or not) line by line. Not recommended for large file sets.nofalse
compare_dateIf true, will _also_ compare the date of the files. (can be used in tandem with any `compare_**` flags)nofalse
compare_only_nameIf true, only compares the name of the files. (can be used in tandem with `compare_date`)nofalse
ignore_name_caseIf true, ignores the casing of the file names.nofalse
ignore_line_endingIf true, will ignore line endings when comparing files - CRLF/LF.nofalse
ignore_whitespaceIf true, ignore any whitespace only at both the beginning and end of a line.nofalse
ignore_all_whitespaceIf true, ignores ALL whitespace in files.nofalse
ignore_empty_linesIf true, ignores empty lines when comparing files.nofalse
ignore_empty_dirsIf true, ignores empty directories when comparing directories.nofalse
ignore_subdirsIf true, skips subdirectories when comparing directories. Effectively only compares the root of the paths.nofalse
namedescription
resultThe result 'enum' of the comparison - `same`, `different`, `error`.
log_pathThe path to the log file that was written (assuming `log_path` input has a value).
distinctThe total number of items that are orphan/distinct.
equalThe total number of items that are the same.
differentThe total number of items with differences.
total_foldersThe total number of directories compared.
total_filesThe total number of files compared.
totalThe total number of items compared.