elisemercury / Duplicate-Image-Finder

difPy - Python package for finding duplicate or similar images within folders
https://difpy.readthedocs.io
MIT License
421 stars 65 forks source link

Sort files by date/name/etc #4

Closed ppizarror closed 2 years ago

ppizarror commented 2 years ago

Hi! Thanks for your library, super useful.

I have a suggestion regarding the ordering of the files previous to checking. Having a way to manipulate the order of the files to be checked would be a nice addition for me, as I'm adding new files and I'd like to want to know if these recent new files are repeated, rather than the names they have.

For instance 4 different ordering mechanisms could be added:

dif.ORDER_BY_NAME_DESC # default dif.ORDER_BY_NAME_ASC # ascendant names dif.ORDER_BY_DATE_DESC dif.ORDER_BY_DATE_ASC

by default, compare_images can have a param like order=dif.ORDER_BY_NAME_DESC. And can be updated by the user. Do you like that behavior?

Greetings! :)

elisemercury commented 2 years ago

Hello ppizarror, In the new version difPy v2.0 the feature has been added for sorting the output filenames alphabetically. The other ordering methods you listed might be considered for future updates. Thanks a lot for your input!