SyntaxFix
Write A Post
Hire A Developer
Questions
Would be the best way
def traverse_dir_recur(dir): import os l = os.listdir(dir) for d in l: if os.path.isdir(dir + d): traverse_dir_recur(dir+ d +"/") else: print(dir + d)