如何使用 C# 遍历具有指定嵌套索引的目录?
小例子:
Folder1
|__Folder1.1
| |__Folder1.1.1
|__Folder1.2
Folder2
|__Folder2.1
|__Folder2.1.1
|__Folder2.1.2
|__Folder2.1.2.1
使用最大嵌套索引 1,我们将获得以下目录:(
嵌套级别 0) Folder1、Folder2
(嵌套级别 1) Folder1.1、Folder1.2、Folder2.1
提前致谢!