Home Cooker Classes Others Rice CookerGX
Classes  >  directory  >  GetDirectories(string)
directory class : GetDirectories(string) method

Description

Gets the list of subdirectories that match to the specified pattern.

Syntax

directoryInstance.GetDirectories(string pattern)

Arguments

ClassNameDescription
stringpatternSearch pattern for the name of directories.

Return value

ClassDescription
list{directory}List of subdirectories that match to the specified pattern.

Sample code

//anyDirectory is a instance of directory type.

list{directory} subDirectories = anyDirectory.GetDirectories();//Subdirectories of name that begin with "c".

Notes

It's a wrapper of the System.IO.DirectoryInfo.GetDirectories(String).

Please note that do not work recursively. This method return the list of direct child subdirectories.

Links for reference

Copyright © Rice All rights reserved.