title: How to read file attributes in a directory?
body: <p>For example:</p>
  <pre><code>import os
  print(os.listdir(&quot;path/to/dir&quot;))
  </code></pre>
  <p>will list files in a directory.</p>
  <p>How do I get the file modification time for all files in the directory?</p>