diff --git a/src/watchdog/events.py b/src/watchdog/events.py index 51c6c5bf..afa8548a 100755 --- a/src/watchdog/events.py +++ b/src/watchdog/events.py @@ -297,6 +297,8 @@ def on_opened(self, event: FileSystemEvent) -> None: class PatternMatchingEventHandler(FileSystemEventHandler): """ Matches given patterns with file paths associated with occurring events. + Uses pathlib's `PurePath.match()` method. `patterns` and `ignore_patterns` + are expected to be a list of strings. """ def __init__( @@ -375,6 +377,7 @@ def dispatch(self, event: FileSystemEvent) -> None: class RegexMatchingEventHandler(FileSystemEventHandler): """ Matches given regexes with file paths associated with occurring events. + Uses the `re` module. """ def __init__(