Page 1 of 1

How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 13:52
by iamnemo
When I copy a file, and a name collision occurs, I am given the option to overwrite if newer, or skip.

When I copy a folder, and a name collision occurs, I am given the option to merge, or skip.

When I copy a folder, and a name collision occurs, I always want to overwrite, not to merge. Can this be done in Xyplorer?

Re: How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 14:35
by highend
And your custom copy settings are?

Re: How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 15:06
by iamnemo
Attached are screen shots of my configuation settings for file copy and move.

Re: How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 15:09
by highend
Then you either have to live with that both files and folders are treated the same (on name collision = overwrite) or you leave it that way and script the folder thing (but in that case you'd can't do it via the normal context menu)...

Re: How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 15:51
by iamnemo
For custom copy operations is the Windws API being used, or is a call made internally to Windows Copy or Xcopy?

Re: How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 15:55
by highend
XYcopy

Re: How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 16:15
by iamnemo
In which case would it be possible to change XYcopy so that on a collision of folder names the user is offered the options to Overwrite, Merge, or Skip?

Re: How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 16:25
by highend
I don't think that Don will make a distinction between files / folders here but in the end he would comment on that himself...

Re: How to copy a folder with option to overwrite on name collision?

Posted: 17 Oct 2024 23:38
by iamnemo
XYcopy already supports a distinction between files and folders; Merge only applies to folders.
For what reason does Overwrite apply only to files, but not to folders?

Re: How to copy a folder with option to overwrite on name collision?

Posted: 18 Oct 2024 08:44
by highend
My last comment was not about XYcopy but the dialog settings^^
They would need to be redone and (up to ~90%) doubled to be able to treat files and folders differently because at some point people would ask why "on failures" or "verfication" or <xxx> can't be set differently...

Re: How to copy a folder with option to overwrite on name collision?

Posted: 18 Oct 2024 12:18
by iamnemo
Thank you for the clarification.
Since files and folders are so different they really need separate scripts. But if this doubles the work to be done, then the present solution is an acceptable compromise.