实际开发中遇到的问题,记录下来以便以后查看
业务:每天自动生成一个目录,在按日期生成的目录中会生成N个子目录,
子目录中会生成一至两个文件,先在需要取到子目录中的文件
1 using System; 2 using System.IO; 3 using System.Collections.Generic; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace MULUTEST 9 { 10 class Program 11 { 12 //返回文件列表 13 private static List<String> filelist; 14 private static int fileDirJB=2; 15 16 static void Main(string[] args) 17 { 18 string dir = "E:\\mulutest"; 19 Console.WriteLine("当前目录:" + dir); 20 try 21 { 22 List<String> datelist = getDateDir(); 23 if (datelist !=