I have two folders A and B that contain files and other folders (no links though). B has a bit more up to date conent (extra files, modified files etc). However, B has wrong file modification dates (touch-ed).
I need to restore the date for each file in such way:
- in case the file in A is equal (by its contents) to B, use A's date also in B
- in case the file is not the same, do not change B's date
Any ideas?