DirectoryInfo

Description

The DirectoryInfo class implements an object that is used to work with directories of PC file system.

Comments

Using these methods enables the 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.

Constructors

  Constructor name Brief description
The Attach constructor creates an object that is used to work with directories and links it to the specified directory.

Class object properties inherited from IDirectoryInfo

  Property name Brief description
The Parent property returns information about a parent directory.
The Roop property returns information about a root directory.

Class object properties inherited from IFileSystemInfo

  Property name Brief description
The Attributes property determines file attributes.
The CreationTime property determines date and time of 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 file name.

Class object methods inherited from IDirectoryInfo

  Method name Brief description
The CopyTo method copies a directory with all its contents.
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.

Class object methods inherited from IFileSystemInfo

  Method name Brief description
The Delete method deletes a file.

See also:

IO Assembly Classes