Improvement in handling excluded' pattern.
Improvement in handling excluded' pattern.

Use pyinotify.ExcludeFilter() to create exclude filter. This is more efficient than creating watches and then individually removing those which match the 'excluded' regexp. This is important for very large directories with millions of files, because often the OS will fail to create millions of watches (Linux default is fs.inotify.max_user_watches = 8192).
splitbrain/Watcher