Click or drag to resize
DirectoryGetFiles Method (String, String)
Returns the names of files (including their paths) that match the specified search pattern in the specified directory.

Namespace: CMS.FileSystemStorage
Assembly: CMS.IO (in CMS.IO.dll) Version: 11.0.0
Syntax
C#
public override string[] GetFiles(
	string path,
	string searchPattern
)

Parameters

path
Type: SystemString
The relative or absolute path to the directory to search. This string is not case-sensitive.
searchPattern
Type: SystemString
Search pattern.

Return Value

Type: String
An array of the full names (including paths) for the files in the specified directory that match the specified search pattern, or an empty array if no files are found.
See Also