cc-4105: rename watched subdirs barely works

This commit is contained in:
Rudi Grinberg 2012-08-03 18:13:15 -04:00
parent 632f2ab470
commit 1e7de08bf3
4 changed files with 69 additions and 16 deletions

View file

@ -42,7 +42,9 @@ class IncludeOnly(object):
def __call__(self, func):
def _wrap(moi, event, *args, **kwargs):
ext = extension(event.pathname)
if ext in self.exts: return func(moi, event, *args, **kwargs)
# Checking for emptiness b/c we don't want to skip direcotries
if (ext in self.exts) or event.dir:
return func(moi, event, *args, **kwargs)
return _wrap