qarmin / czkawka

Multi functional app to find duplicates, empty folders, similar images etc.
Other
18.32k stars 603 forks source link

Action Move leaves a file behind when moving all files in a group and two of them have the same name #1304

Open bonderado opened 1 week ago

bonderado commented 1 week ago

When a group of duplicates contains files with the same name e.g.: /Dir1/file1 /Dir2/file1

if both are selected and the Move action is used on them, czkawka will emit a message stating that "1/2 file successfully moved", but the group is removed from the list, since it now consists of a single file. This however was not the intention of the user. I think that files that were selected should be still displayed, even if in a single-file group, so that the user can take further action in case the last action left something behind. This seems related to #1264.

An option to preserve the folder structure on move (#997) or to auto-rename(#700) /auto-overwrite files on Move would also solve the issue in a different way, but it would need to be enabled before the first attempt, or the group would already be lost.