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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
iamnemo
Posts: 18
Joined: 10 Jun 2017 23:12

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

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

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

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

Post by highend »

And your custom copy settings are?
One of my scripts helped you out? Please donate via Paypal

iamnemo
Posts: 18
Joined: 10 Jun 2017 23:12

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

Post by iamnemo »

Attached are screen shots of my configuation settings for file copy and move.
Attachments
Configuration   Custom Copy Operations   Configure.png
Configuration Custom Copy Operations Configure.png (23.98 KiB) Viewed 1197 times
Configuration   Custom Copy Operations.png
Configuration Custom Copy Operations.png (10.02 KiB) Viewed 1197 times

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

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

Post 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)...
One of my scripts helped you out? Please donate via Paypal

iamnemo
Posts: 18
Joined: 10 Jun 2017 23:12

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

Post by iamnemo »

For custom copy operations is the Windws API being used, or is a call made internally to Windows Copy or Xcopy?

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

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

Post by highend »

XYcopy
One of my scripts helped you out? Please donate via Paypal

iamnemo
Posts: 18
Joined: 10 Jun 2017 23:12

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

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

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

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

Post 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...
One of my scripts helped you out? Please donate via Paypal

iamnemo
Posts: 18
Joined: 10 Jun 2017 23:12

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

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

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

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

Post 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...
One of my scripts helped you out? Please donate via Paypal

iamnemo
Posts: 18
Joined: 10 Jun 2017 23:12

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

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

Post Reply