Prompt on filename collision during renaming

Have a suggestion for "Everything"? Please post it here.
Post Reply
775405984
Posts: 7
Joined: Tue May 30, 2017 5:32 pm

Prompt on filename collision during renaming

Post by 775405984 » Tue May 14, 2019 3:12 pm

I suggest Everything can offer a solution for filename collision during renaming files.

Instead of a pop-up window saying there is an error, Everything can give me an option to add a suffix or automatically adds one for me.

void
Site Admin
Posts: 4667
Joined: Fri Oct 16, 2009 11:31 pm

Re: Prompt on filename collision during renaming

Post by void » Thu May 16, 2019 1:38 am

Everything should do this already for single file renames:


Here I have tried to rename DUPE - Copy.txt to DUPE.txt (which already exists)

I've added to my TODO list: Add an option to resolve rename conflicts by adding (x) suffix or allowing the user to add a custom suffix.

Thanks for the suggestion.

westernira
Posts: 1
Joined: Thu May 16, 2019 12:45 pm

Re: Prompt on filename collision during renaming

Post by westernira » Thu May 16, 2019 1:32 pm

it helpful for me. Thanks for the advice.

NotNull
Posts: 1179
Joined: Wed May 24, 2017 9:22 pm

Re: Prompt on filename collision during renaming

Post by NotNull » Thu May 16, 2019 2:12 pm

This is what I see when renaming file1.txt to (the already existing) file2.txt:


2019-05-16 16_09_49-Window.png
You do not have the required permissions to view the files attached to this post.

therube
Posts: 2197
Joined: Thu Sep 03, 2009 6:48 pm

Re: Prompt on filename collision during renaming

Post by therube » Thu May 16, 2019 2:55 pm

And on XP, F2 rename...
.
Everything - F2 Rename conflict.png
You do not have the required permissions to view the files attached to this post.

void
Site Admin
Posts: 4667
Joined: Fri Oct 16, 2009 11:31 pm

Re: Prompt on filename collision during renaming

Post by void » Fri May 17, 2019 8:14 am

Added to my TODO list.

I don't have a simple solution for this. I would like the OS to manage this, but looks like I'll have to implement my own dialog.

https://stackoverflow.com/questions/272 ... -fo-rename

I found the new IFileOperation API to be rather broken.
IFileOperation::CopyFile will abort on the first src not found. -windows 7 x64 sp1
Windows 10 it will attempt to rename the file twice. -try renaming C:\program files\asd3 => C:\program files\asd4 -we get an admin request, the rename happens, and then we fail because we try a second time and C:\program files\asd3 no longer exists. adding a sink does not help.
I too can confirm that the new API does not solve the 80070057 issue on Windows 10 x64 1809.

Post Reply