Interface IFilePath
Represents an absolute or relative path to a file.
Inherited Members
Namespace: Singulink.IO
Assembly: Singulink.IO.FileSystem.dll
Syntax
public interface IFilePath : IPath, IEquatable<IPath?>
Properties
| Name | Description |
|---|---|
| Extension | Gets the file extension including the leading dot, otherwise an empty string. |
| NameWithoutExtension | Gets the file name without the extension. |
Methods
| Name | Description |
|---|---|
| AddExtension(string?, PathOptions) | Adds an extension to the file name, preserving any existing extensions before it. |
| WithExtension(string?, PathOptions) | Changes the current extension of the file name to a new extension. |