I'd like to check if a given path matches a search pattern like *.*
or report*.txt
.
Directory.GetFiles (root, "*.txt")
or similar should not be used (the file in question does not even exist).
My first idea was to translate the search pattern to regex, but I recall the search pattern behaves somewhat strangely at times (presumably for historic reasons), so it can probably not easily be translated.