Gets a path to the specified file relative to the output directory.
If this path is not relative to the output directory, then the original path is returned.
- Namespace
- Statiq
.Common - Containing Type
- I
Read Only File System Extensions
Syntax
public static NormalizedPath GetRelativeOutputPathOrSelf(this IReadOnlyFileSystem fileSystem, in NormalizedPath path)
Parameters
Name | Type | Description |
---|---|---|
fileSystem | IReadOnlyFileSystem | |
path | NormalizedPath |
Return Value
Type | Description |
---|---|
NormalizedPath | A path to this file relative to the output directory, the original path if the path is relative, or the original path if the path is not relative to the output directory. |