using ConsoleApp1; Console.WriteLine("当前目录下的文件列表:"); string[] arr = Directory.GetFiles(@"E:\TestData\vedio"); string[] filedir = Directory.GetFiles(@"E:\TestData\vedio", "*", SearchOption.AllDirectories); foreach (var item in filedir) { Console.WriteLine(item); }
PS:楼主邮箱 tccwpl@163.com