Gets a path to the specified file relative to the output directory.
If this path is not relative to the output directory, then a null path is returned.
- Namespace
- Statiq
.Common - Containing Type
- I
Read Only File System Extensions
Syntax
public static NormalizedPath GetRelativeOutputPath(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 a null path if the path is not relative to the output directory. |