gorakhargosh / watchdog

Python library and shell utilities to monitor filesystem events.

Home Page:http://packages.python.org/watchdog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What should "Example API usage" do?

abcdenis opened this issue · comments

Hi,
what I did:

  • put "Example API usage" sample code into file and run with existing directory passed in command line
  • tried to add files to directory and changing existing files
  • trie to change logging level to DEBUG

What happens:
Nothing. No messages in console.

What I expected:
some log message as proof of work

Is there any other working sample available?
Thank you.

Python 3.10 @ macos 12.6.7

Suddenly found that directory for testing has space inside it.
Running against other directory without space in path shows me some messages.

Finally found that I pass wrong path value thru PyCharm running configuration:

  • path has spaces escaped by backslash
  • I wrapped it with apostrophes
  • nothing worked

My bad.

Printing work directory to console could save time of the user.