Loop through directories and cd to only the first dir under each

前端 未结 0 770
死守一世寂寞
死守一世寂寞 2020-12-19 18:27
rawsource="/Users/user/project/CODE_BASE"  
for root, dirs, files in os.walk(rawsource):
    print(root)

This is printing like 4-5 levels

相关标签:
回答
  • 消灭零回复
提交回复
热议问题