title: How to refresh a directory (Windows 10) using python
body: <p>I just need to refresh a folder.
  A hypothetical ideal example would be:</p>
  <pre><code>from aModule import refreshdir # fake
  refreshdir(&quot;C:\path\to\directory&quot;)
  </code></pre>
  <p>Context:
  I am using Autodesk Desktop Connector, a service that sync data on the cloud with local folders. To avoid expending resources, this tool just checks for new updates when the user opens the file or refresh the directory (so manually). However, in order to automate some operations, I need to refresh the directory with Python. There is no API for this tool.</p>
  <p>Thanks in advance! =)</p>
  <p>Edit:
  New files can be added in the cloud. That's why it is important to refresh the folder. Example:
  Before refreshing:
  <a href="https://i.stack.imgur.com/yXcfA.png" rel="nofollow noreferrer">enter image description here</a>
  After refreshing:
  <a href="https://i.stack.imgur.com/ygd6u.png" rel="nofollow noreferrer">enter image description here</a>
  os.listdir cannot catch those highlited files before refreshing.</p>