Method AddExtension
AddExtension(string?, PathOptions)
Adds an extension to the file name, preserving any existing extensions before it.
Declaration
IFilePath AddExtension(string? extension, PathOptions options = PathOptions.NoUnfriendlyNames)
Parameters
| Type | Name | Description |
|---|---|---|
| string | extension | The new extension that should be applied to the file. Must either be null/empty or start with a dot '.' character and contain
no additional dots. (e.g. |
| PathOptions | options | The options to apply when parsing the new file name. The rest of the path is not reparsed. |
Returns
| Type | Description |
|---|---|
| IFilePath |