Page 11 of 12

Re: Synchronize 2 folders

Posted: 22 Sep 2017 17:42
by elqasar
admin wrote:Thanks. Please try if it's better in next beta.
much better :tup:

But I see one other problem. If I try to use 'Overwrite' to make file names the same case in source and destination it works OK. But for doing the same thing to folder names doesn't work - any folders if they have different case are just ignored :naughty:

Maybe there is a technical limitation why folder case cannot be made the same. I see in some other sync tools that they also cannot do folder names, only file names. :veryconfused:

Re: Synchronize 2 folders

Posted: 22 Sep 2017 19:27
by admin
I could do that, and it would be okay (performance-wise) after a "Merge Folders" prompt. However, if I do it for all folders in the job (also when there is no "Merge Folders" prompt because it's turned off) then it would slow down the process too much.

Therefore, for consistency, I'd rather don't do it at all.

Re: Synchronize 2 folders

Posted: 22 Sep 2017 19:58
by elqasar
OK. It is an idea for me to make a Windows application that can sync folder names.

At least I know it will have a Unique Selling Point ! 8)

Re: Synchronize 2 folders

Posted: 22 Sep 2017 20:09
by admin
Cool. :beer: Although an XY script could do it, too... :mrgreen:

Re: Synchronize 2 folders

Posted: 23 Sep 2017 10:30
by DmFedorov
sync "F:\Test\Sync\Source", "", 5:="c";
XY hangs, no reaction on Cancel and after 1min. Runtime error 97 and after it program closed.

Re: Synchronize 2 folders

Posted: 23 Sep 2017 11:19
by admin
admin wrote:I could do that, and it would be okay (performance-wise) after a "Merge Folders" prompt. However, if I do it for all folders in the job (also when there is no "Merge Folders" prompt because it's turned off) then it would slow down the process too much.

Therefore, for consistency, I'd rather don't do it at all.
I made some tests and this is totally fast, no performance hit at all.

So it could be done. Question is: Is it okay to "Sync Caps" in all target folders? All the rules we have, like "Overwrite if Newer", only concern files, not folders. So I have nothing to decide which folders should be caps-synced and which not. So it would be all or none. (Unless we have "Ask before merging folders" ON and the answer is "no" -- in that case the caps should not be synced for this branch.)

Generally I agree with you that sync caps is an expected outcome of a sync operation (and probably also of a backup and copy operation). So I'm inclined to do it: "Sync Caps" in all target folders (apart where merging was explicitly denied by the user) for Copy, Backup, and Sync.

Any objections?

Re: Synchronize 2 folders

Posted: 23 Sep 2017 11:20
by highend
Any objections?
Nope

Re: Synchronize 2 folders

Posted: 23 Sep 2017 11:33
by admin
DmFedorov wrote:sync "F:\Test\Sync\Source", "", 5:="c";
XY hangs, no reaction on Cancel and after 1min. Runtime error 97 and after it program closed.
Thank you! Fix comes.

Re: Synchronize 2 folders

Posted: 23 Sep 2017 12:19
by admin
elqasar wrote:
admin wrote:Thanks. Please try if it's better in next beta.
much better :tup:
Uhm, did that refer to the wrong-monitor issue, or to the wrong-caps-in-progress issue?

Re: Synchronize 2 folders

Posted: 23 Sep 2017 14:10
by elqasar
admin wrote:
elqasar wrote:
admin wrote:Thanks. Please try if it's better in next beta.
much better :tup:
Uhm, did that refer to the wrong-monitor issue, or to the wrong-caps-in-progress issue?
The monitor issue. Up until that point we had not yet started discussing the case issue. :maf:

Re: Synchronize 2 folders

Posted: 23 Sep 2017 14:17
by elqasar
For the syncing of names I would put some new checkbox options with names something like this:

[ ] Compare filename case
[ ] Compare foldername case

or

[ ] Treat filename case as significant
[ ] Treat foldername case as significant

or

[ ] Treat filename case differences as differences
[ ] Treat foldername case differences as differences

Re: Synchronize 2 folders

Posted: 23 Sep 2017 14:18
by admin
We did, but in another thread: viewtopic.php?p=152606#p152606

But yes, I could have found out myself to which issue you referred. Anyway, I'm happy the monitor issue is fixed. Having only one monitor myself this is always a bit tricky to do...

Re: Synchronize 2 folders

Posted: 23 Sep 2017 14:22
by admin
elqasar wrote:For the syncing of names I would put some new checkbox options with names something like this:

[ ] Compare filename case
[ ] Compare foldername case

or

[ ] Treat filename case as significant
[ ] Treat foldername case as significant

or

[ ] Treat filename case differences as differences
[ ] Treat foldername case differences as differences
Thanks. This will only come in 18.50 so we have time to discuss it.

ATM I'd prefer to do this without loading more stuff into the interface. So, why not just do it? Why would somebody not want this to happen?

Re: Synchronize 2 folders

Posted: 24 Sep 2017 22:09
by admin
xyplorerköln wrote:Let's say your average user comes along and says, "Oh, cool - a sync tool. Let me preview. OK, looks good. Wait - the window closed. I have to open Sync again?" That's not good.
Ok, agreed. I finally saw the way how to do it. Implementation planned for tomorrow...

Re: Synchronize 2 folders

Posted: 29 Sep 2017 20:43
by elqasar
I did a simple test with 18.40.0108 to see if files and folders are treated them same when it comes to making uppercase/lowercase the same in source and destination. And I found that they are not.

I made a source folder containing just a single folder and a single text file. Then I made a backup so I had an identical copy. Then I just changed everything in the destination to uppercase.

So I had this:

Source:
folder
text file.txt

Destination:
FOLDER
TEXT FILE.TXT

Using the default sync settings (overwrite newer) I had XYplorer sync these folders. It acted on the destination folder but not the destination file.

Afterwards I had this:

Source:
folder
text file.txt

Destination:
folder
TEXT FILE.TXT