public List <FileViewModel> GetWebFiles(string folder) { stackVariable1 = new string[3]; stackVariable1[0] = "wwwroot"; stackVariable1[1] = "content"; stackVariable1[2] = folder; V_0 = CommonHelper.GetFullPath(stackVariable1); this.CreateDirectoryIfNotExist(V_0); V_1 = new List <FileViewModel>(); V_2 = Directory.GetDirectories(V_0, "*", 1); V_3 = 0; while (V_3 < (int)V_2.Length) { V_4 = new DirectoryInfo(V_2[V_3]); V_5 = V_4.ToString().Replace("\\", "/").Replace("wwwroot", string.Empty); stackVariable34 = V_4.GetFiles(); stackVariable35 = FileRepository.u003cu003ec.u003cu003e9__31_0; if (stackVariable35 == null) { dummyVar0 = stackVariable35; stackVariable35 = new Func <FileInfo, DateTime>(FileRepository.u003cu003ec.u003cu003e9.u003cGetWebFilesu003eb__31_0); FileRepository.u003cu003ec.u003cu003e9__31_0 = stackVariable35; } V_6 = ((IEnumerable <FileInfo>)stackVariable34).OrderByDescending <FileInfo, DateTime>(stackVariable35).GetEnumerator(); try { while (V_6.MoveNext()) { V_7 = V_6.get_Current(); stackVariable42 = V_1; stackVariable43 = new FileViewModel(); stackVariable43.set_FolderName(V_4.get_Name()); stackVariable43.set_FileFolder(V_5); if (V_7.get_Name().LastIndexOf('.') >= 0) { stackVariable59 = V_7.get_Name().Substring(0, V_7.get_Name().LastIndexOf('.')); } else { stackVariable59 = V_7.get_Name(); } stackVariable43.set_Filename(stackVariable59); stackVariable43.set_Extension(V_7.get_Extension()); stackVariable42.Add(stackVariable43); } } finally { if (V_6 != null) { V_6.Dispose(); } } V_3 = V_3 + 1; } return(V_1); }