示例#1
0
 /// <summary>
 /// Enumerate files only, not directories
 /// </summary>
 /// <returns></returns>
 public static IEnumerable <string> EnumerateFiles(this Glob glob)
 {
     return(glob.EnumerateFileInfos().Select(_ => _.FullName));
 }
示例#2
0
 /// <summary>
 /// Enumerate files
 /// </summary>
 /// <returns></returns>
 public static IEnumerable <FileInfo> EnumerateFileInfos(this Glob glob)
 {
     return(glob.EnumerateFileSystemInfos().OfType <FileInfo>());
 }