title: TypeError: argument of type 'PosixPath' is not iterable
body: <p>I am trying to recursively iterate through folders to assign a particular file to a variable for later parsing, however I am receiving the following error:</p>
  
  <pre class="lang-py prettyprint-override"><code>TypeError: argument of type 'PosixPath' is not iterable
  </code></pre>
  
  <pre class="lang-py prettyprint-override"><code>Flask version 1.0.2 (not sure if its relevant)
  Python version 3.7.3
  </code></pre>
  
  <p>Imports:</p>
  
  <pre><code>from pathlib import Path
  from glob import glob
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>def parse_info(bundle_path):
      file_list = []
      for filename in Path(bundle_path).glob('**/*.*'):
          file_list.append(filename)
  
      for elem in file_list:
          if 'uname' in elem:
              print('present')
  </code></pre>
  
  <p>Call:</p>
  
  <pre><code>parse_info(&lt;some path&gt;)
  </code></pre>
  
  <p>The <code>'print(filename)'</code> does print out all the files in that path and the desired search string is present in that print output, so I know it exists, however just not sure how to capture that element for later. Any help would be appreciated.</p>