FileSystemInfo Class |
Namespace: Alphaleonis.Win32.Filesystem
The FileSystemInfo type exposes the following members.
Name | Description | |
---|---|---|
FileSystemInfo | Initializes a new instance of the FileSystemInfo class |
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. | |
DisplayPath | Returns the path as a string. | |
EntryInfo | [AlphaFS] Gets the instance of the FileSystemEntryInfo class. | |
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.
| |
IsDirectory | [AlphaFS] The initial "IsDirectory" indicator that was passed to the constructor. | |
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. | |
LongFullName | The full path of the file system object in Unicode (LongPath) format. | |
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. | |
Transaction | [AlphaFS] Represents the KernelTransaction that was passed to the constructor. |
Name | Description | |
---|---|---|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
Delete | Deletes a file or directory. | |
Equals | Determines whether the specified Object is equal to the current Object. (Overrides ObjectEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Overrides ObjectGetHashCode.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
Refresh | Refreshes the state of the object. | |
RefreshEntryInfo | Refreshes the state of the FileSystemEntryInfo EntryInfo instance. | |
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
Equality | Implements the operator == | |
Inequality | Implements the operator != |
Name | Description | |
---|---|---|
FullPath | Represents the fully qualified path of the file or directory. | |
OriginalPath | The path originally specified by the user, whether relative or absolute. |