Use watchdog instead:
htmue/python-observer
Observe files and directories for changes. Act on file creation, deletion and content changes.
Observe files and directories for changes. Act on file creation, deletion and content changes.
Use watchdog instead: