Directory recursion

前端 未结 3 624
旧巷少年郎
旧巷少年郎 2021-01-03 09:08

If you need to recursively traverse a directory tree, there are two ways to do it:

  1. Build up pathnames of increasing length as you go, .../.../... etc.

3条回答
  •  一生所求
    2021-01-03 09:50

    I believe the find uses method 2 as you are able to execute commands as you go (with the exec option)

提交回复
热议问题