FileUtils.

GetRelativePath(string, string) Method

Summary

Given an absolute directory and an absolute file name, returns a relative file name.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Util
Containing Type
FileUtils

Syntax

public static string GetRelativePath(string basePath, string absolutePath)

Parameters

Name Type Description
basePath string An absolute directory.
absolutePath string An absolute file name.

Return Value

Type Description
string A relative file name for the given absolute file name.