config.root trailing slash + allow any in fields

This commit is contained in:
relikd
2022-04-06 12:29:35 +02:00
parent ebc29459ec
commit d6df547682
2 changed files with 5 additions and 6 deletions

View File

@@ -158,8 +158,7 @@ class Watcher:
def should_process(self, node: Record) -> bool:
''' Check if record path is being watched. '''
p = node['_path'] # type: str
return p.startswith(self._root) or p + '/' == self._root
return node['_path'].startswith(self._root)
def process(self, record: Record) -> None:
'''