📜  c# 列出子文件夹 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:48.606000             🧑  作者: Mango

代码示例1
DirectoryInfo directory = new DirectoryInfo(pathDownload);
DirectoryInfo[] directories = directory.GetDirectories();

foreach(DirectoryInfo folder in directories)
     listBox2.Items.Add(folder.Name);