Thursday 30 January 2003 — This is more than 20 years old. Be careful.
Jason Orendorff has given us the path Python module, which is a true Pythonic joy. It simplifies os.path, and makes it much easier to use.
I had the same experience as Jason: os.path.walk is just not great. My solution was to write my own module to do the same thing, but it ended up also not great. Jason’s solution is intelligent enough to be simple, rather than clever enough to be difficult. My hat is off to him.
Add a comment: