Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: filter by extension #139

Open
robin13 opened this issue Feb 22, 2021 · 1 comment
Open

Feature request: filter by extension #139

robin13 opened this issue Feb 22, 2021 · 1 comment

Comments

@robin13
Copy link

robin13 commented Feb 22, 2021

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.

@clayuy
Copy link

clayuy commented Sep 29, 2022

I am also looking for this functionality and have implemented the changes to allow filter by extensions. I have created pull request: #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants