title: Listing files with specific endings in folder as variable, using python
body: <p>I am trying to list files with specific ending ('.txt') in folder which was set as a variable, using python.</p>
  
  <p>I tried to use glob.glob('userFolder/*.txt') in order to do it.</p>
  
  <pre><code>import os
  import glob
  userFolder='/homes/myFolder'
  glob.glob('userFolder/*.txt')
  </code></pre>
  
  <p>I got an empty list.</p>