DirectoryGetFiles Method (String, String) |
Returns the names of files (including their paths) that match the specified search pattern in the specified directory.
Namespace: CMS.IOAssembly: CMS.IO (in CMS.IO.dll) Version: 11.0.0
Syntax public static 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:
StringAn 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