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

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 13.0.131
Syntax
C#
public virtual string[] GetDirectories(
	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) of the subdirectories that match the search pattern in the specified directory, or an empty array if no directories are found.
Remarks
If you need to search subdirectories recursively, use the GetDirectories(String, String, SearchOption) method, which enables you to specify a search of all subdirectories.
See Also