On 10/8/2010 8:55 PM Steven D'Aprano said... > I'm sorry to tell you that you've just reinvented the wheel. This was > already solved, a long, long time ago. It is called the glob module: > Only if glob now descends into the file system... which is why you'd choose os.walk instead. Emile