Example #1
0
        public static IEnumerable <FileInfo> GetFiles(string path, string searchPattern, string filter)
        {
            string[] paths = FileSystemRepository.GetFilteredFiles(path, searchPattern, filter);
            IEnumerable <FileInfo> files = paths.Select(p => new FileInfo(p));

            return(files);
        }
Example #2
0
 public static int CountFiles(string path, string searchPattern, string filter)
 {
     return(FileSystemRepository.GetFilteredFiles(path, searchPattern, filter).Count());
 }