Interface IAbsoluteFilePath
Represents an absolute path to a file.
Inherited Members
Namespace: Singulink.IO
Assembly: Singulink.IO.FileSystem.dll
Syntax
public interface IAbsoluteFilePath : IAbsolutePath, IFilePath, IPath, IEquatable<IPath?>
Properties
| Name | Description |
|---|---|
| IsReadOnly | Gets or sets a value indicating whether the file is read-only. |
| Length | Gets the size of the file in bytes. |
| ParentDirectory | Gets the file's parent directory. |
Methods
| Name | Description |
|---|---|
| CopyTo(IAbsoluteFilePath, bool) | Copies the file to a new file, optionally allowing the overwriting of an existing file. |
| Delete(bool) | Deletes the file. |
| GetInfo() | Gets information about this file. |
| MoveTo(IAbsoluteFilePath, bool) | Moves the file to a new location, optionally allowing the overwriting of an existing file. |
| OpenAsyncStream(FileMode, FileAccess, FileShare, int, FileOptions) | Opens an asynchronous file stream to a new or existing file (the Asynchronous option is always appended). |
| OpenStream(FileMode, FileAccess, FileShare, int, FileOptions) | Opens a file stream to a new or existing file. |
| Replace(IAbsoluteFilePath, IAbsoluteFilePath?, bool) | Replaces the contents of a file with the current file, deleting the original file and optionally creating a backup of the replaced file. |
| WithExtension(string?, PathOptions) | Adds a new extension or changes the existing extension of the file. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IAbsolutePath.GetInfo() | Gets information about this file/directory. |
| IFilePath.WithExtension(string?, PathOptions) | Adds a new extension or changes the existing extension of the file. |