Share via


FileSystemInfo Members

The following tables list the members exposed by the FileSystemInfo type.

Public Constructors

Name Description
Public Method FileSystemInfo Initializes a new instance of the FileSystemInfo class.

Public Fields

Name Description
Public Field m_fullPath Represents the fully qualified path of the directory or file.

Public Properties

Name Description
Public Property Attributes Gets or sets the FileAttributes of the current FileSystemInfo.
Public Property CreationTime Gets or sets the creation time of the current FileSystemInfo object.
Public Property CreationTimeUtc Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object.
Public Property Exists Gets a value indicating whether the file or directory exists.
Public Property Extension Gets the string representing the extension part of the file.
Public Property FullName Gets the full path of the directory or file.
Public Property LastAccessTime Gets or sets the time the current file or directory was last accessed.
Public Property LastAccessTimeUtc Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
Public Property LastWriteTime Gets or sets the time when the current file or directory was last written to.
Public Property LastWriteTimeUtc Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
Public Property Name Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object.

Public Methods

Name Description
Public Method Delete Deletes a file or directory.
Public Method FromFileTimeUtc Converts the specified Windows file time to an equivalent UTC time.
Public Method Refresh Refreshes the state of the object.
Public Method RefreshIfNull If information from the native file system has not yet been retrieved, retrieves it.

See Also

Reference

FileSystemInfo Class
System.IO Namespace