You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax of PurePosixPath: PurePosixPath(path).match(pattern)
As per that the pattern specified C:\Users\Test\AppData\Local\zwd\data\files\647971177\74j1a3a8020fba7934ecfb6579acd2de88c8c\[test].txt will trigger event for these scenarios:
If the use case is that square bracket ([]) will be part of the filename then the following pattern can be used:
>>> from pathlib import PurePosixPath
>>> PurePosixPath("a/[ab].py").match("[[]ab[]].py")
True
If the use case is that square bracket ([]) should match along with character matching functionality of pathlib then the following pattern can be used:
Hello people,
I came across a strange issue. I'm using PatternMatchingEventHandler class to detect any changes occurring in a certain path.
If the pattern contains "[]" in it, no event was triggered. Please provide me any workaround or a solution on this.
Sample pattern :
C:\Users\Test\AppData\Local\zwd\data\files\647971177\74j1a3a8020fba7934ecfb6579acd2de88c8c\[test].txt
Watchdog version :
0.9.0
Platform: Windows OS
The text was updated successfully, but these errors were encountered: