Read my book

I wrote books about Webpack and React. Check them out!

Thursday, April 29, 2010

Finding Files Using Python

Python provides a nifty little module known as glob that may be used to find files using a given pattern. It's quite simple to use as you can see here:

There is just one little problem with glob. It does not support recursion. Fortunately there's a workaround for this. Here's a little snippet showing how to use it: