FileInfo Class |
Namespace: Alphaleonis.Win32.Filesystem
The FileInfo type exposes the following members.
Name | Description | |
---|---|---|
![]() | FileInfo(String) | Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path. |
![]() | FileInfo(String, PathFormat) | [AlphaFS] Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path. |
![]() | FileInfo(KernelTransaction, String) | [AlphaFS] Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path. |
![]() | FileInfo(KernelTransaction, String, PathFormat) | [AlphaFS] Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path. |
Name | Description | |
---|---|---|
![]() | Attributes |
Gets or sets the attributes for the current file or directory.
(Inherited from FileSystemInfo.) |
![]() | CreationTime | Gets or sets the creation time of the current file or directory. (Inherited from FileSystemInfo.) |
![]() | CreationTimeUtc | Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory. (Inherited from FileSystemInfo.) |
![]() | Directory | Gets an instance of the parent directory. |
![]() | DirectoryName | Gets a string representing the directory's full path. |
![]() | DisplayPath | Returns the path as a string. (Inherited from FileSystemInfo.) |
![]() | EntryInfo | [AlphaFS] Gets the instance of the FileSystemEntryInfo class. (Inherited from FileSystemInfo.) |
![]() | Exists | Gets a value indicating whether the file exists. (Overrides FileSystemInfoExists.) |
![]() | Extension |
Gets the string representing the extension part of the file.
(Inherited from FileSystemInfo.) |
![]() | FullName |
Gets the full path of the directory or file.
(Inherited from FileSystemInfo.) |
![]() | IsDirectory | [AlphaFS] The initial "IsDirectory" indicator that was passed to the constructor. (Inherited from FileSystemInfo.) |
![]() | IsReadOnly | Gets or sets a value that determines if the current file is read only. |
![]() | LastAccessTime | Gets or sets the time the current file or directory was last accessed. (Inherited from FileSystemInfo.) |
![]() | LastAccessTimeUtc | Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed. (Inherited from FileSystemInfo.) |
![]() | LastWriteTime | Gets or sets the time when the current file or directory was last written to. (Inherited from FileSystemInfo.) |
![]() | LastWriteTimeUtc | Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to. (Inherited from FileSystemInfo.) |
![]() | Length | Gets the size, in bytes, of the current file. |
![]() | LongFullName | The full path of the file system object in Unicode (LongPath) format. (Inherited from FileSystemInfo.) |
![]() | Name | Gets the name of the file. (Overrides FileSystemInfoName.) |
![]() | Transaction | [AlphaFS] Represents the KernelTransaction that was passed to the constructor. (Inherited from FileSystemInfo.) |
Name | Description | |
---|---|---|
![]() | AppendText | Creates a StreamWriter that appends text to the file represented by this instance of the FileInfo. |
![]() | AppendText(Encoding) | Creates a StreamWriter that appends text to the file represented by this instance of the FileInfo. |
![]() | Compress | [AlphaFS] Compresses a file using NTFS compression. |
![]() | CopyTo(String) | Copies an existing file to a new file, disallowing the overwriting of an existing file. |
![]() | CopyTo(String, CopyOptions) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified. |
![]() | CopyTo(String, PathFormat) | [AlphaFS] Copies an existing file to a new file, disallowing the overwriting of an existing file. |
![]() | CopyTo(String, Boolean) | Copies an existing file to a new file, allowing the overwriting of an existing file. |
![]() | CopyTo(String, CopyOptions, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified. |
![]() | CopyTo(String, CopyOptions, Boolean) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified. |
![]() | CopyTo(String, Boolean, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file. |
![]() | CopyTo(String, CopyOptions, CopyMoveProgressRoutine, Object) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
and the possibility of notifying the application of its progress through a callback function. |
![]() | CopyTo(String, CopyOptions, Boolean, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified. |
![]() | CopyTo(String, CopyOptions, CopyMoveProgressRoutine, Object, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified. |
![]() | CopyTo(String, CopyOptions, Boolean, CopyMoveProgressRoutine, Object) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
and the possibility of notifying the application of its progress through a callback function. |
![]() | CopyTo(String, CopyOptions, Boolean, CopyMoveProgressRoutine, Object, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
and the possibility of notifying the application of its progress through a callback function. |
![]() | Create | Creates a file. |
![]() | 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.) |
![]() | CreateText | Creates a instance that writes a new text file. |
![]() | Decompress | [AlphaFS] Decompresses an NTFS compressed file. |
![]() | Decrypt | Decrypts a file that was encrypted by the current account using the Encrypt method. |
![]() | Delete | Permanently deletes a file. (Overrides FileSystemInfoDelete.) |
![]() | Delete(Boolean) | [AlphaFS] Permanently deletes a file. |
![]() | Encrypt | Encrypts a file so that only the account used to encrypt the file can decrypt it. |
![]() | EnumerateAlternateDataStreams | [AlphaFS] Returns an enumerable collection of AlternateDataStreamInfo instances for the file. |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from FileSystemInfo.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetAccessControl | Gets a FileSecurity object that encapsulates the access control list (ACL) entries for the file described by the current FileInfo object. |
![]() | GetAccessControl(AccessControlSections) | Gets a FileSecurity object that encapsulates the specified type of access control list (ACL) entries for the file described by the current FileInfo object. |
![]() | GetHash | [AlphaFS] Calculates the hash/checksum. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from FileSystemInfo.) |
![]() | 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.) |
![]() | MoveTo(String) | Moves a specified file to a new location, providing the option to specify a new file name. |
![]() | MoveTo(String, MoveOptions) | [AlphaFS] Moves a specified file to a new location, providing the option to specify a new file name, MoveOptions can be specified. |
![]() | MoveTo(String, PathFormat) | [AlphaFS] Moves a specified file to a new location, providing the option to specify a new file name. |
![]() | MoveTo(String, MoveOptions, PathFormat) | [AlphaFS] Moves a specified file to a new location, providing the option to specify a new file name, MoveOptions can be specified. |
![]() | MoveTo(String, MoveOptions, CopyMoveProgressRoutine, Object) | [AlphaFS] Moves a specified file to a new location, providing the option to specify a new file name, MoveOptions can be specified,
and the possibility of notifying the application of its progress through a callback function. |
![]() | MoveTo(String, MoveOptions, CopyMoveProgressRoutine, Object, PathFormat) | [AlphaFS] Moves a specified file to a new location, providing the option to specify a new file name, MoveOptions can be specified. |
![]() | Open(FileMode) | Opens a file in the specified mode. |
![]() | Open(FileMode, FileAccess) | Opens a file in the specified mode with read, write, or read/write access. |
![]() | Open(FileMode, FileSystemRights) | [AlphaFS] Opens a file in the specified mode with read, write, or read/write access. |
![]() | Open(FileMode, FileAccess, FileShare) | Opens a file in the specified mode with read, write, or read/write access and the specified sharing option. |
![]() | Open(FileMode, FileSystemRights, FileShare) | [AlphaFS] Opens a file in the specified mode with read, write, or read/write access and the specified sharing option. |
![]() | OpenRead | Creates a read-only FileStream. |
![]() | OpenText | Creates a StreamReader with NativeMethods.DefaultFileEncoding encoding that reads from an existing text file. |
![]() | OpenText(Encoding) | [AlphaFS] Creates a StreamReader with Encoding that reads from an existing text file. |
![]() | OpenWrite | Creates a write-only FileStream. |
![]() | Refresh | Refreshes the state of the object. |
![]() | RefreshEntryInfo | Refreshes the state of the FileSystemEntryInfo EntryInfo instance. |
![]() | Replace(String, String) | Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. |
![]() | Replace(String, String, PathFormat) | [AlphaFS] Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors. |
![]() | Replace(String, String, Boolean) | Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors. |
![]() | Replace(String, String, Boolean, PathFormat) | [AlphaFS] Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors. |
![]() | SetAccessControl(FileSecurity) | Applies access control list (ACL) entries described by a FileSecurity object to the file described by the current FileInfo object. |
![]() | SetAccessControl(FileSecurity, AccessControlSections) | Applies access control list (ACL) entries described by a FileSecurity object to the file described by the current FileInfo object. |
![]() | ToString | Returns the path as a string. (Overrides FileSystemInfoToString.) |
Name | Description | |
---|---|---|
![]() | FullPath | Represents the fully qualified path of the file or directory. (Inherited from FileSystemInfo.) |
![]() | OriginalPath | The path originally specified by the user, whether relative or absolute. (Inherited from FileSystemInfo.) |