Table of Contents

Method FindFileRecursiveInAppFolder

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

searchPattern string

The 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.

appFolderOverride string

Path 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 null if no file was found.