DirectoryInfo Members
The following tables list the members exposed by the DirectoryInfo type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
DirectoryInfo | Initializes a new instance of the DirectoryInfo class on the specified path. |
Public Properties
Name | Description | |
---|---|---|
![]() |
Exists | Specifies whether this directory already exists. |
![]() |
Name | Gets the name of this DirectoryInfo instance. |
![]() |
Parent | Gets the parent directory of a specified subdirectory. |
![]() |
Root | Gets the root portion of a path. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Create | Creates a directory. |
![]() |
CreateSubdirectory | Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. |
![]() |
Delete | Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files. |
![]() |
GetDirectories | Returns an array of directories in the current DirectoryInfo matching the given search criteria. |
![]() |
GetFiles | Returns a file list from the current directory matching the given searchPattern. |
![]() |
MoveTo | Moves a DirectoryInfo instance and its contents to a new path. |
![]() |
ToString | Returns the original path that was passed by the user. |