sortphotos icon indicating copy to clipboard operation
sortphotos copied to clipboard

Feature request: filter by extension

Open robin13 opened this issue 4 years ago • 1 comments

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.

robin13 avatar Feb 22 '21 06:02 robin13

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

clayuy avatar Sep 29 '22 01:09 clayuy