Follow

Oh wow, I didn't know that if you want to prevent os.walk from walking a specific subdirectory, you can modify the list of directory names it returns in place: stackoverflow.com/a/19859907

Not the most intuitive way to accomplish this, but definitely useful.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.