title: How to find the owner of a file in Windows?
body: <p>Same question as <a href="https://stackoverflow.com/questions/1830618/how-to-find-the-owner-of-a-file-or-directory-in-python">here</a>, but for Windows.</p>
  
  <p>This <a href="https://stackoverflow.com/a/1830635/5069105">answer</a> works nicely in Linux:</p>
  
  <pre><code>from os import stat
  from pwd import getpwuid
  
  def find_owner(filename):
      return getpwuid(stat(filename).st_uid).pw_name
  </code></pre>
  
  <p>The module <code>pwd</code> doesn't seem to be available in Windows.</p>
  
  <p>How to do that in Windows?</p>