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 |
|
Attach
|
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 |
|
Parent |
The Parent property returns information about a parent directory. |
|
Root |
The Roop property returns information about a root directory. |
Class object properties inherited from IFileSystemInfo
|
Property name |
Brief description |
|
Attributes |
The Attributes property determines file attributes. |
|
CreationTime |
The CreationTime property determines date and time of file creation. |
|
Exists |
The Exists property returns whether a file exists. |
|
Extension |
The Extension property returns a file extension including ".". |
|
FullName |
The FullName property returns a full path and a file name. |
|
LastAccessTime |
The LastAccessTime property determines date and time of the last file opening. |
|
LastWriteTime |
The LastWriteTime property determines date and time of the last file edit. |
|
Name |
The Name property returns file name. |
Class object methods inherited from IDirectoryInfo
|
Method name |
Brief description |
|
CopyTo |
The CopyTo method copies a directory with all its contents. |
|
Create |
The Create method creates a directory. |
|
CreateSubdirectory |
The CreateSubdirectory method creates a subdirectory. |
|
GetDirectories |
The GetDirectories method returns information about subdirectories in a directory. |
|
GetFiles |
The GetFiles method returns information about files in a directory. |
|
GetFileSystemInfos |
The GetFileSystemInfos method returns information about subdirectories and files in a directory. |
|
MoveTo |
The MoveTo method moves a directory with all its contents. |
Class object methods inherited from IFileSystemInfo
|
Method name |
Brief description |
|
Delete |
The Delete method deletes a file. |
See also:
IO Assembly Classes