Page 1 of 1
Sync on_collision overwrite if different contents not honored
Posted: 30 May 2024 20:06
by hermhart
I have a sync script that I use that syncs all of my current configuration for XYplorer, of which, up until I believe two maintenance releases ago, it seems to of stopped honoring the on_collision (4 = Overwrite if different contents) argument. I use it on two different computers and on both it now re-syncs all of the files, not just the changed ones. Has something changed?
Re: Sync on_collision overwrite if different contents not honored
Posted: 31 May 2024 09:49
by admin
Works fine here. I use this test script to copy a text file from here to the other pane. It's skipped when same, copied when different:
Code: Select all
sync <path 1>, <path 2>, 1, 4, 0, "k";
Check your value at INI key
SyncContentCheck. By default it should be
4 (= SHA-256).
Re: Sync on_collision overwrite if different contents not honored
Posted: 31 May 2024 20:48
by hermhart
I checked that INI key per your suggestion and it is already set as you show.
The only thing I have changed recently in my script was:
old: sync "<xypath>", "$XYBackup", 1, 4, 1, n;
new: sync "<xypath>", "$XYBackup", 1, 4, 1, bn;
As I believe you recently added the option for the 'b' argument for background processing.
Re: Sync on_collision overwrite if different contents not honored
Posted: 01 Jun 2024 11:15
by admin
Works just as well with the "b" switch.

Re: Sync on_collision overwrite if different contents not honored
Posted: 30 Oct 2024 20:04
by hermhart
Sorry to ask about this again, but I am still having this issue and am curious if there could be any other setting perhaps under File Operations that I might be missing in order to only overwrite on_collision 4 = Overwrite if different contents?
Re: Sync on_collision overwrite if different contents not honored
Posted: 31 Oct 2024 08:23
by admin
You consistently have this issue with every file that is synced?
Re: Sync on_collision overwrite if different contents not honored
Posted: 31 Oct 2024 13:52
by hermhart
Yes, I do have this with every file that is synced. And as I stated in my very first post on this subject, I have this on two separate computers and they both began to fail at the same time after an update. The syncing works fine, it's just that it should be skipping over a whole bunch of files that have not been modified and should only be syncing files with different contents.
Re: Sync on_collision overwrite if different contents not honored
Posted: 31 Oct 2024 14:35
by admin
Could you mail your XYplorer.ini file to support?
Re: Sync on_collision overwrite if different contents not honored
Posted: 31 Oct 2024 14:50
by hermhart
It has been sent.
Re: Sync on_collision overwrite if different contents not honored
Posted: 31 Oct 2024 16:41
by admin
Thanks, that helped. Got it. Was a bug indeed!

Fixed in next beta.

Re: Sync on_collision overwrite if different contents not honored
Posted: 31 Oct 2024 16:46
by hermhart
Thank you so much! You rock!
