adrianlopezroche / fdupes

FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
2.42k stars 186 forks source link

Feature request: Keep the shortest filename #57

Open Joshfindit opened 8 years ago

Joshfindit commented 8 years ago

Many times, duplicates come up as

file.jpeg
file1.jpeg
file2.jpeg

or

file.jpeg
file (1).jpeg
file (2).jpeg
file (3).jpeg

When recognizing these patterns, it's easy to see that the longer filenames are the ones that are unnecessary.

xerc commented 4 years ago

fdupes 1.6.1

-o --order=BY       select sort order for output, linking and deleting; by
mtime (BY='time'; default) or filename (BY='name')
gianfrus commented 6 months ago

From a general-purpose-awareness point of view, I propose to re-spin this request as "add a new ordering option: filename lenght". This could allow users to give priority to longer file names (more conservative choice) or to shorter file names (less redundant). This isn't achievable through filename ordering.