AbstractDirectory GetDirectories Method (String, String, SearchOption)Kentico 8.1 API Reference
Gets the names of the subdirectories (including their paths) that match the specified search pattern in the current directory, and optionally searches subdirectories.

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

path
Type: OnlineSystem String
Path to directory
searchPattern
Type: OnlineSystem String
Search pattern
searchOption
Type: CMS.IO SearchOption
One of the enumeration values that specifies whether the search operation should include all subdirectories or only the current directory.

Return Value

Type:  OnlineString 
See Also