implement a post-processor module to compare file versions

(#530)
This commit is contained in:
Mike Fährmann
2020-01-18 21:08:25 +01:00
parent 32d7195d08
commit 254f7c3999
3 changed files with 91 additions and 1 deletions

View File

@@ -1421,6 +1421,33 @@ Description A mapping from directory names to filename extensions that should
=========== =====
compare
-------
| Compare versions of the same file and replace/enumerate them on mismatch
| (requires `downloader.*.part`_ = ``true`` and `extractor.*.skip`_ = `false`)
compare.action
--------------
=========== =====
Type ``string``
Default ``"replace"``
Description The action to take when files do not compare as equal.
* ``"replace"``: Replace/Overwrite the old version with the new one
* ``"enumerate"``: Add an enumeration index to the filename of the new
version like `skip = "enumerate" <extractor.*.skip_>`__
=========== =====
compare.shallow
---------------
=========== =====
Type ``bool``
Default ``false``
Description Only compare file sizes. Do not read and compare their content.
=========== =====
exec
----