title: Monitoring a single file
body: <p>I need to monitor (using <a href="http://pythonhosted.org/watchdog/index.html" rel="noreferrer">watchdog</a>) a single file, not a whole directory.</p>
  
  <p>What is the best way to avoid monitoring a whole directory?
  I suppose <a href="http://pythonhosted.org/watchdog/_modules/watchdog/events.html#PatternMatchingEventHandler" rel="noreferrer">this</a></p>
  
  <pre><code>class watchdog.events.PatternMatchingEventHandler(patterns=None, ignore_patterns=None, ignore_directories=False, case_sensitive=False)[source]
  </code></pre>
  
  <p>could be helpful, but how to define an appropriate pattern for my file (<em>C:/dir1/dir2/file.txt)</em>?</p>