ayi <p>How do I watch a file for changes?</p> <hr> <p><em>Source : <a href="http://packages.python.org/watchdog/" rel="noopener nofollow ugc">Stack Overflow [windows]</a>?)</em></p>
ayi_2 <p>Did you try using <a href="http://packages.python.org/watchdog/">Watchdog</a>?</p> <p>Python API library and shell utilities to monitor file system events.</p> <p>Directory monitoring made easy with</p> <ul> <li> <p>A cross-platform API.</p> </li> <li> <p>A shell tool to run commands in response to directory changes.</p> </li> </ul> <p>Get started quickly with a simple example in <a href="https://pythonhosted.org/watchdog/quickstart.html#quickstart">Quickstart</a>…</p>