title: How do I retrieve the contents of all the files in a directory in a list each one?
body: <p>I would like to read the all the files in a directory so I'm doing the following:</p>
  
  <pre><code>path = '/thepath/of/the/files/*'
  files = glob.glob(path)
  for file in files:
      print file
  </code></pre>
  
  <p>The problem is that when I print the files I don't obtain anything; any idea of how to return all the content of the files in a list per file?</p>
  
  <p>EDIT: I appended the path with an asterisk, this should give you all the files and directories in that path.</p>