Method FindFileRecursiveInAppFolder
FindFileRecursiveInAppFolder(string, string?)
Returns the full file name that match a search pattern in the application folder. Searches in all subdirectories.
public static string? FindFileRecursiveInAppFolder(string searchPattern, string? appFolderOverride = null)
Parameters
searchPatternstringThe search string to match against the names of files in path. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters. It doesn't support regular expressions.
appFolderOverridestringPath to use instead of app folder. Optional.
Returns
- string
The full name (including path) for the first found file that match the specified search pattern. Returns
nullif no file was found.