【发布时间】:2022-01-05 09:32:28
【问题描述】:
我想使用 python os.walk() 模拟 bash find 命令的 -depth 参数。
来自 Linux 手册页:
-depth Process each directory's contents before the directory
itself.
如何做到这一点?
【问题讨论】:
-
看看the docs中的
topdown参数