Interface IRelativeFilePath
Represents a relative path to a file.
Inherited Members
Namespace: Singulink.IO
Assembly: Singulink.IO.FileSystem.dll
Syntax
[TypeConverter(typeof(RelativeFilePathConverter))]
[JsonConverter(typeof(RelativeFilePathJsonConverter))]
public interface IRelativeFilePath : IRelativePath, IFilePath, IPath, IEquatable<IPath?>
Properties
| Name | Description |
|---|---|
| ParentDirectory | Gets the file's parent directory. |
Methods
| Name | Description |
|---|---|
| AddExtension(string?, PathOptions) | Adds a single extension to the file name, preserving any existing extensions before it. |
| AddMultiExtension(string?, PathOptions) | Adds a multi-extension, which has one or more parts (e.g. |
| RemoveExtension(string, PathOptions) | Removes the specified single extension, which is the last extension of the file name. Case is ignored on every platform. |
| RemoveMultiExtension(string, PathOptions) | Removes the specified multi-extension, which has one or more parts (e.g. |
| ToPathFormat(PathFormat, PathOptions) | Converts the path to use a different format. |
| WithExtension(string?, PathOptions) | Changes the last extension of the file name to a new single extension. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IFilePath.AddExtension(string?, PathOptions) | Adds a single extension to the file name, preserving any existing extensions before it. |
| IFilePath.AddMultiExtension(string?, PathOptions) | Adds a multi-extension, which has one or more parts (e.g. |
| IFilePath.RemoveExtension(string, PathOptions) | Removes the specified single extension, which is the last extension of the file name. Case is ignored on every platform. |
| IFilePath.RemoveMultiExtension(string, PathOptions) | Removes the specified multi-extension, which has one or more parts (e.g. |
| IFilePath.WithExtension(string?, PathOptions) | Changes the last extension of the file name to a new single extension. |
| IRelativePath.ParentDirectory | Gets the parent directory of this file/directory. |
| IRelativePath.ToPathFormat(PathFormat, PathOptions) | Converts the path to use a different format. |