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
Copy

The Copy method copies a directory.
CreateDirectory

The CreateDirectory method creates the specified directory.
Delete

The Delete method deletes the specified directory.
Exists

The Exists method checks if the specified directory exists.
GetAttributes

The GetAttributes method returns directory attributes.
GetCreationTime

The GetCreationTime method returns date and time of a directory creation.
GetCurrentDirectory

The GetCurrentDirectory method returns the path to the current working directory of application.
GetDirectories

The GetDirectories method returns the name of all subdirectories of the specified directory.
GetDirectoryRoot

The GetDirectoryRoot method returns the path of a root directory for the specified directory.
GetFiles

The GetFiles method returns the list of directory files.
GetFileSystemEntries

The GetFileSystemEntries method returns names of all subdirectories and files of the specified directory.
GetLastAccessTime

The GetLastAccessTime method returns date and time of the last access to a directory.
GetLastWriteTime

The GetLastWriteTime method returns date and time of the last edit of a directory contents.
GetLogicalDrives

The GetLogicalDrives method returns the list of logical drives on the current computer.
GetParent

The GetParent method returns information about a parent directory of the specified directory.
Move

The Move method moves a directory.
SetAttributes

The SetAttributes method sets specified attributes for a directory.
SetCreationTime

The SetCreationTime method changes date and time of a directory creation.
SetCurrentDirectory

The SetCurrentDirectory method changes a working directory for an application.
SetLastAccessTime

The SetLastAccessTime method changes date and time of the last access to a directory.
SetLastWriteTime

The SetLastWriteTime method determines date and time of the last edit of a directory contents.

See also:

IO Assembly Classes