Method GetSubdirectory
GetSubdirectory(DirectoryInfo, string)
Creates a DirectoryInfo instance representing a subdirectory within the specified parent directory.
Declaration
public static DirectoryInfo GetSubdirectory(this DirectoryInfo parentDir, string subdirName)
Parameters
Type | Name | Description |
---|---|---|
DirectoryInfo | parentDir | The parent directory. |
string | subdirName | The name of the subdirectory. |
Returns
Type | Description |
---|---|
DirectoryInfo | A DirectoryInfo instance for the specified subdirectory. |