FileSystemInfo Properties
.NET Framework 4
The FileSystemInfo type exposes the following members.
| Name | Description | |
|---|---|---|
|
Attributes | Gets or sets the attributes for the current file or directory. |
|
CreationTime | Gets or sets the creation time of the current file or directory. |
|
CreationTimeUtc | Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory. |
|
Exists | Gets a value indicating whether the file or directory exists. |
|
Extension | Gets the string representing the extension part of the file. |
|
FullName | Gets the full path of the directory or file. |
|
LastAccessTime | Gets or sets the time the current file or directory was last accessed. |
|
LastAccessTimeUtc | Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed. |
|
LastWriteTime | Gets or sets the time when the current file or directory was last written to. |
|
LastWriteTimeUtc | Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to. |
|
Name | For files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists. Otherwise, the Name property gets the name of the directory. |