title: How to ignore hidden files using os.listdir()?
body: <p>My python script executes an <code>os.listdir(path)</code> where the path is a queue containing archives that I need to treat one by one. </p>
  
  <p>The problem is that I'm getting the list in an array and then I just do a simple <code>array.pop(0)</code>. It was working fine until I put the project in subversion. Now I get the <code>.svn</code> folder in my array and of course it makes my application crash.</p>
  
  <p>So here is my question: is there a function that ignores hidden files when executing an <code>os.listdir()</code> and if not what would be the best way?</p>