Assembly: Rebex.Common (in Rebex.Common.dll)
Public Function GetFiles ( _ searchPattern As , _ caseSensitive As _ ) As ()
public  GetFiles( searchPattern, caseSensitive )
The search string to match the items against.
If tree, perform unix-like case-sensitive matching.
Return ValueA array containing the names of files in the specified directory that match the specified search pattern.
The following wildcards are permitted in searchPattern:
* - Zero or more characters.
? - Exactly one character.
Characters other than the wildcards represent themselves. For example, the searchPattern string "*.txt" searches for all names/paths ending with the ".txt". The searchPattern string "s*" searches for all names/paths beginning with the letter "s".
The method works in two different modes (determined by UsePath property): Filenames without path are searched and returned. This mode is used by default for collections returned by GetList method.Filenames with path are searched and returned. This mode is used by default for collection returned by GetItems method.