fix FileManager rule pre-check

This commit is contained in:
2020-11-09 11:39:31 +01:00
parent 1403fc0927
commit 5ca90a661b

View File

@@ -287,6 +287,10 @@ class FileManagerScheduler(TaskScheduler):
return rule
async def process_event(self, event):
if not ((not event.dir and self._files) or
(event.dir and self._dirs)):
return
if self._get_rule_by_event(event):
await super().process_event(event)
else: