title: What is the difference between pathlib glob('*') and iterdir?
body: <p>Suppose I'm writing code using <code>pathlib</code> and I want to iter over all the files in the same level of a directory.</p>
  <p>I can do this in two ways:</p>
  <pre class="lang-py prettyprint-override"><code>p = pathlib.Path('/some/path')
  for f in p.iterdir():
      print(f)
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>p = pathlib.Path('/some/path')
  for f in p.glob('*'):
      print(f)
  </code></pre>
  <p>Is one of the options better in any way?</p>