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
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.