| | | 1 | | using System.Collections.Generic; |
| | | 2 | | |
| | | 3 | | namespace DirectSight.Common; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Searches files based on file pattern with support for globbing. |
| | | 7 | | /// </summary> |
| | | 8 | | internal static class GlobbingFileSearch |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Gets the files matching the given file pattern.. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <param name="pattern">The file pattern.</param> |
| | | 14 | | /// <returns>The files.</returns> |
| | | 15 | | internal static IEnumerable<string> GetFiles(string pattern) |
| | 18 | 16 | | { |
| | 18 | 17 | | return new Glob(pattern).ExpandNames(); |
| | 18 | 18 | | } |
| | | 19 | | } |