watchdog watch file

61 views
Skip to first unread message

Janis Heller

unread,
May 8, 2017, 6:40:29 AM5/8/17
to watchdog-python
Is there some documentation on how to use the watchdog to watch only one file for changes/edits?

I would need this to call some code, if a change / edit is made. Any code samples? Since I'm new to python, would be nice to have some, in the github repo I was unable to find some, related to this.

Jeffrey DeLeo

unread,
May 9, 2017, 12:49:09 PM5/9/17
to watchdog-python
See http://pythonhosted.org/watchdog/api.html#event-handler-classes try using PatternMatchingEventHandler.
Reply all
Reply to author
Forward
0 new messages