posborne / putio-sync

Python daemon that automatically downloads files from put.io
MIT License
29 stars 12 forks source link

Feature Request: Filter directories and file types for sync #31

Closed okmatt closed 7 years ago

okmatt commented 7 years ago

Make the CLI take one or more "filter" expressions which would be python glob expressions (via fnmatch: https://docs.python.org/2/library/fnmatch.html). This would allow for filtering directories but also also for including only specified file types. Probably would want to be able to specify multiple inclusion patterns and exclusion patterns (e.g. putio-sync -i 'mydir/' -e '.srt').

Pass this set of filters into PutioSynchronizer (in core.py)

Apply the filter in _perform_single_check