public static List <FileInfo> GetUsefulFileInfosFromDir(string path) { List <FileInfo> fileInfos = GetFileInfosFromDir(path); List <FileInfo> result = ListUtility.FilterList(fileInfos, (FileInfo info) => { return(!ListUtility.IsContainElement(_filterFiles, info.Name)); }); return(result); }
static List <FileInfo> GetFileInfosFromDir(string path) { Debug.Assert(Directory.Exists(path)); DirectoryInfo dirInfo = new DirectoryInfo(path); FileInfo[] fileInfos = dirInfo.GetFiles("*", SearchOption.AllDirectories); List <FileInfo> result = ListUtility.FilterList(fileInfos, (FileInfo info) => { return(!info.FullName.Contains(".svn")); }); return(result); }