FilePath.

GetRelativePath(DirectoryPath) Method

Summary

Get the relative path to another directory.
Namespace
Cake.Core.IO
Containing Type
FilePath

Syntax

public DirectoryPath GetRelativePath(DirectoryPath to)

Parameters

Name Type Description
to DirectoryPath The target directory path.

Return Value

Type Description
DirectoryPath A DirectoryPath.