DirectoryPath.

GetRelativePath(FilePath) Method

Summary

Get the relative path to another file. If this path and the target path do not share the same file provider, the target path is returned.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.IO
Containing Type
DirectoryPath

Syntax

public FilePath GetRelativePath(FilePath target)

Parameters

Name Type Description
target FilePath The target file path.

Return Value

Type Description
FilePath A Wyam.Common.IO.FilePath.
GitHub