Re: Slight change to Edit | Compare
Posted: 20 Jun 2013 12:57
.
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
The code is already there (since 20110321Marco wrote:Mmh, getting back to the topic of comparing files, I realize that the Compare... commands have smartness built in (they check file size first, and then a small chunk at the beginning and end of the file before going "brute force" bit-per-bit). What if such smartness was available via a scripting function too? Then multiple files could be compared at once, it would be trivial for a scripter setting up a foreach loop that aborts as soon as one file looks different from the other scanned.
AFAICS, there's not a filecompare() function. And comparing hashes is not exactly the same thing, due to (un/likely) collisions.
Code: Select all
comparefiles(file1, file2, [hash])