FileSystemInfo Members
The following tables list the members exposed by the FileSystemInfo type.
Public Constructors
Name | Description | |
---|---|---|
FileSystemInfo | Initializes a new instance of the FileSystemInfo class. |
Public Fields
Name | Description | |
---|---|---|
m_fullPath | Represents the fully qualified path of the directory or file. |
Public Properties
Name | Description | |
---|---|---|
Attributes | Gets or sets the FileAttributes of the current FileSystemInfo. | |
CreationTime | Gets or sets the creation time of the current FileSystemInfo object. | |
CreationTimeUtc | Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object. | |
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 | Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object. |
Public Methods
Name | Description | |
---|---|---|
Delete | Deletes a file or directory. | |
FromFileTimeUtc | Converts the specified Windows file time to an equivalent UTC time. | |
Refresh | Refreshes the state of the object. | |
RefreshIfNull | If information from the native file system has not yet been retrieved, retrieves it. |