cfv should be able to compare against filename-embedded CRCs
Brought to you by:
donut
For example, certain files frequently contain a CRC32 checksum embedded in the filename. At the moment I use a script to extract these checksums from the filename and put them in a .sfv file. I then run cfv.
I propose that there be an option to calculate the checksum of a file and compare that to substrings in the filename. If the checksum (case-insensitively) matches a substring of the filename, the file is marked OK.
Logged In: NO
I'd like to see the same feature, so i hacked support for it.
Here's a patch against cfv-1.18.2:
http://85.214.101.129/cfv_filename_embedded_checksum.diff
Here's the already patched file:
http://85.214.101.129/cfv
It's not clean code, but it works for me.
If the maintainer is willing to incorporate the requested feature into the mainline version of cfv, i'd be happy to help.