The Directory class is used to work with directories of PC file system.
All methods of this class are static. Using these methods enables user to create, delete, move, get and change information about directories. It is recommended to use corresponding methods of the DirectoryInfo class if a lot of operations on directories are planned to perform.
| Method name | Brief description | |
| The Copy method copies a directory. | ||
| The CreateDirectory method creates a specified directory. | ||
| The Delete method deletes a specified directory. | ||
| The Exists method checks existence of a specified directory. | ||
| The GetAttributes method returns directory attributes. | ||
| The GetCreationTime method returns date and time of a directory creation. | ||
| The GetCurrentDirectory method returns a path to a current working directory of application. | ||
| The GetDirectories method returns a name of all subdirectories of a specified directory. | ||
| The GetDirectoryRoot method returns a path of a root directory for a specified directory. | ||
| The GetFiles method returns a list of directory files. | ||
| The GetFileSystemEntries method returns names of all subdirectories and files of a specified directory. | ||
| The GetLastAccessTime method returns date and time of the last access to a directory. | ||
| The GetLastWriteTime method returns date and time of the last edit of a directory content. | ||
| The GetLogicalDrives method returns a list of logical drives on a current computer. | ||
| The GetParent method returns information about a parent directory of a specified directory. | ||
| The Move method moves a directory. | ||
| The SetAttributes method sets specified attributes for a directory. | ||
| The SetCreationTime method changes date and time of a directory creation. | ||
| The SetCurrentDirectory method changes a working directory for an application. | ||
| The SetLastAccessTime method changes date and time of the last access to a directory. | ||
| The SetLastWriteTime method determines date and time of the last edit of a directory content. |
See also: