예제 #1
0
        public IEnumerable <FileInfo> EnumerateFiles(string searchPattern, SearchOption searchOption)
        {
            if (Common.IsRunningOnMono())
            {
                return(SysDirectoryInfo.EnumerateFiles(searchPattern, searchOption).Select(s => new FileInfo(s.FullName)));
            }

            return(Directory.EnumerateFileSystemEntries(FullPath, searchPattern, false, true, searchOption).Select(e => new FileInfo(e)));
        }