The DirectoryInfo class implements an object used to work with directories of PC file system.
Using these methods enables user to create, delete, move, get and change information about directories. It is recommended to use corresponding static method of the Directory class if only one operation is planned.
| Constructor name | Brief description | |
| The Attach designer creates an object used to work with directories and links it to a specified directory. |
| Property name | Brief description | |
| The Parent property returns information about a parent directory. | ||
| The Roop property returns information about a root directory. |
| Property name | Brief description | |
| The Attributes property determines file attributes. | ||
| The CreationTime property determines date and time of a file creation. | ||
| The Exists property returns whether a file exists. | ||
| The Extension property returns a file extension including ".". | ||
| The FullName property returns a full path and a file name. | ||
| The LastAccessTime property determines date and time of the last file opening. | ||
| The LastWriteTime property determines date and time of the last file edit. | ||
| The Name property returns a file name. |
| Method name | Brief description | |
| The CopyTo method copies a directory with all its content. | ||
| The Create method creates a directory. | ||
| The CreateSubdirectory method creates a subdirectory. | ||
| The GetDirectories method returns information about subdirectories in a directory. | ||
| The GetFiles method returns information about files in a directory. | ||
| The GetFileSystemInfos method returns information about subdirectories and files in a directory. | ||
| The MoveTo method moves a directory with all its contents. |
| Method name | Brief description | |
| The Delete method deletes a file. |
See also: