How to traverse through the files in a directory?
<p>I have a directory logfiles. I want to process each file inside this directory using a Python script.</p>

<pre><code> for file in directory:
       do.....
</code></pre>

<p>How do I do this?  </p>
