Pythonic way to remove directories from a file listing
<p>I can think of easy ways to accomplish this, but what is the most pythonic way?   I get a file listing for os.listdir, and some may be directories.  </p>

<p>I could check through each one in a loop and check if os.isdir returns false, then remove it from the list.  What is a pythonic way to write this?</p>
