SyntaxFix
Write A Post
Hire A Developer
Questions
The default behavior of os.walk() is to walk from root to leaf. Set topdown=False in os.walk() to walk from leaf to root.
os.walk()
topdown=False