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
Adding callbacks (on_deleted, on_created...) after instantiating FileSystemEventHandler class(and its subclasses) will not fire the respective callback when a event is trigger
changes from the PR #814 seems to be the reason for the issue.
EDIT: Sorry if this is not the preferred way of doing things. I just started using watchdog and many articles on the web used this approach and mine was not working, which got me scratching my head hard. I tried the above code on the older version i.e (2.1.3) and it worked.
The text was updated successfully, but these errors were encountered:
OS: Pop!_OS 20.04 LTS
Python version: 3.9.5
Watchdog version: 2.1.4
Adding callbacks (
on_deleted
,on_created
...) after instantiatingFileSystemEventHandler
class(and its subclasses) will not fire the respective callback when a event is triggerFor example:
This Works
This doesn't
changes from the PR #814 seems to be the reason for the issue.
EDIT: Sorry if this is not the preferred way of doing things. I just started using watchdog and many articles on the web used this approach and mine was not working, which got me scratching my head hard. I tried the above code on the older version i.e (2.1.3) and it worked.
The text was updated successfully, but these errors were encountered: