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

regexp in exclude? #11

Open
gecon opened this issue Nov 30, 2015 · 1 comment
Open

regexp in exclude? #11

gecon opened this issue Nov 30, 2015 · 1 comment

Comments

@gecon
Copy link

gecon commented Nov 30, 2015

Seems like regular expressions for excluding files is not working right.
I mean regexps like those mentioned here:
https://github.com/seb-m/pyinotify/blob/master/python2/examples/exclude.py

Are they tested?

For example I am excluding in jobs.yml:
['/home/foo/bar/','^/home/foo/bar/temp.']
or even:
['/home/foo/bar/','/home/foo/bar/temp.
']

but I'm still getting notified for excluded files matching the regexp.
(I'm getting notifications for files like '/home/foo/bar/temp-1-2-3').

@boruh
Copy link

boruh commented Apr 6, 2016

In my case (I'm using watcher.ini file, and not yml), I had to remove quotes around regexp. For example:
excluded=^/disk1/chroot/upload/201[0-5].+,^/disk1/chroot/upload/20160[12].+

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