public static List <FileShowModel> GetFoldAllModel(string Path)
        {
            List <FileShowModel> list = new List <FileShowModel>();
            string        str         = "";
            DirectoryInfo thisOne     = new DirectoryInfo(Path);
            FileShowModel fsm         = new FileShowModel();

            fsm.id   = Path;
            fsm.name = thisOne.Name;
            str      = ListTreeShow(thisOne, 0, str, fsm);
            list.Add(fsm);
            return(list);
        }
        public static string ListTreeShow(DirectoryInfo theDir, int nLevel, string Rn, FileShowModel pfsm)//递归目录 文件
        {
            pfsm.children = new List <FileShowModel>();
            DirectoryInfo[] subDirectories = theDir.GetDirectories();//获得目录
            foreach (DirectoryInfo dirinfo in subDirectories)
            {
                FileShowModel fsm = new FileShowModel();
                fsm.id   = dirinfo.FullName;
                fsm.name = dirinfo.Name;

                pfsm.children.Add(fsm);


                Rn = ListTreeShow(dirinfo, 0, Rn, fsm);
            }
            return(Rn);
        }