sortphotos
sortphotos copied to clipboard
Feature request: filter by extension
I would like to sort my photos into one directory structure, and videos into another - it would be great to have some additional filters:
--include_extension
--filter_extension
which could be used to either include or exclude files of a particular extension. Then it would be possible to run the script over the same directory multiple times with a suitable include/exclude to capture just the desired files.
I am also looking for this functionality and have implemented the changes to allow filter by extensions. I have created pull request: https://github.com/andrewning/sortphotos/pull/151 to merge the changes. This utilizes the --extensions option. An example command for copying jpg and png files only
python sortphotos.py /source /destination --extensions jpg png