Synchronize 2 folders

Features wanted...
elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Synchronize 2 folders

Post 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:

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post 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.

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Synchronize 2 folders

Post 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)

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post by admin »

Cool. :beer: Although an XY script could do it, too... :mrgreen:

DmFedorov
Posts: 715
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Synchronize 2 folders

Post 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.

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post 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?

highend
Posts: 14612
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Synchronize 2 folders

Post by highend »

Any objections?
Nope
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post 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.

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post 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?

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Synchronize 2 folders

Post 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:

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Synchronize 2 folders

Post 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

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post 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...

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post 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?

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post 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...

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Synchronize 2 folders

Post 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

Post Reply