Directory

Description

The Directory class is used to work with directories of PC file system.

Comments

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 be executed.

Static class methods inherited from IDirectory

  Method name Brief description
The Copy method copies a directory.
The CreateDirectory method creates the specified directory.
The Delete method deletes the specified directory.
The Exists method checks if the specified directory exists.
The GetAttributes method returns directory attributes.
The GetCreationTime method returns date and time of a directory creation.
The GetCurrentDirectory method returns the path to the current working directory of application.
The GetDirectories method returns the name of all subdirectories of the specified directory.
The GetDirectoryRoot method returns the path of a root directory for the specified directory.
The GetFiles method returns the list of directory files.
The GetFileSystemEntries method returns names of all subdirectories and files of the 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 contents.
The GetLogicalDrives method returns the list of logical drives on the current computer.
The GetParent method returns information about a parent directory of the 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 contents.

See also:

IO Assembly Classes