Click or drag to resize
Directory.GetFiles 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: 12.0.0
Syntax
C#
public override string[] GetFiles(
	string path,
	string searchPattern
)

Parameters

path
Type: System.String
The relative or absolute path to the directory to search. This string is not case-sensitive.
searchPattern
Type: System.String
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