View Windows file metadata in Python
<p>I am writing a script to email the owner of a file when a separate process has finished. I have tried:</p>

<pre><code>import os
FileInfo = os.stat("test.txt")
print (FileInfo.st_uid)
</code></pre>

<p>The output of this is the owner ID number. What I need is the Windows user name. </p>
