I don't see how it would be two stage:
compare files
if compareresult != same {
if (checkhassh() == same)
replace = false
else
replace = true
}
The point is that the MD5 hash becomes a last minute (and optional) check before the decision to replace the file is made.
compare files
if compareresult != same {
if (checkhassh() == same)
replace = false
else
replace = true
}
The point is that the MD5 hash becomes a last minute (and optional) check before the decision to replace the file is made.