adrianlopezroche / fdupes

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

Implemented sorting output duplicate files by size #56

Open malkuh opened 8 years ago

malkuh commented 8 years ago

I always wanted this feature and saw there was also an item about it in the issue list. After finding all the duplicate files, the list only has to be sorted by the size of those. I think mergesort is the best choice for the sorting algorithm because no memory has to be dynamically allocated and worst runtime is still O(n log (n)). I added the command line option -z or --sortbysize. It worked without problems on the examples I tested.

Btw, thanks for the awesome work on fdupes!

FabioPedretti commented 7 years ago

There is already an "order" option in 1.6.1, maybe your patch could be adapted to use the existing syntax?

q2dg commented 5 years ago

PLEASE!!