Today, I needed to walk a directory structure, looking for all Java files. It would be that hard to write this kind of code in Python but I was hoping that it was already part of the core language.
I thought glob was what I was looking for but unfortunately, it will not recurse through a whole tree so using it would defeat the purpose.
Luckily, I found the answer via Google. Basically, I just created a helper class to handle all of the logic just like the post suggests and it worked great.
Posted by Josh at June 27, 2003 05:07 PM | TrackBack