<p>In Java you can do <code>File.listFiles()</code> and receive all of the files in a directory.  You can then easily recurse through directory trees.</p>

<p>Is there an analogous way to do this in Python?</p>

Straight from Python's Refererence Library
```
```
>>> import glob
>>> glob.glob('./[0-9].*')
['./1.gif', './2.txt']
>>> glob.glob('*.gif')
['1.gif', 'card.gif']
>>> glob.glob('?.gif')
['1.gif']
```
```