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

PatternMatchingEventHandler don't work #99

Closed
piccolop opened this issue Apr 19, 2012 · 1 comment
Closed

PatternMatchingEventHandler don't work #99

piccolop opened this issue Apr 19, 2012 · 1 comment

Comments

@piccolop
Copy link

I think that there is some error in : patterns.py line 116

if not case_sensitive:
  included_patterns = set(map(_string_lower, included_patterns))
  excluded_patterns = set(map(_string_lower, excluded_patterns))
else:
  included_patterns = set(included_patterns)
  excluded_patterns = set(excluded_patterns)

if I specify :

PatternMatchingFileCreateMonitor(patterns="*.py;*.txt" ,ignore_directories=True)

the included_patterns on my enviroment (win 7,python 2.7,watchdog 0.6) is

set(['*', '.', 'p', 't', 'y', 'x', ';''])

and the python match_path_against(pathname, included_patterns, case_sensitive) always return True

@piccolop piccolop reopened this Apr 19, 2012
@piccolop
Copy link
Author

sorry no bug

PatternMatchingFileCreateMonitor(patterns=['*.txt', '*.py'] ,ignore_directories=True) work perfect

bye

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

1 participant