gorakhargosh / watchdog

Python library and shell utilities to monitor filesystem events.
http://packages.python.org/watchdog/
Apache License 2.0
6.64k stars 698 forks source link

Simplify the quickstart example #1047

Closed nbelakovski closed 4 months ago

nbelakovski commented 4 months ago

Personally, I found the quickstart example to be jumbled and a little confusing. It was hard for me to tell where I would put my own code to react to file system events (indeed the quickstart never showed how to do this).

I also think the selection of the path using sys.argv and place everything under "if name == main" is unnecessary for the simple example.

I hope you find this helpful.

BoboTiG commented 4 months ago

I like it, thanks @nbelakovski !