normPath

Normalizes a resource path while trying to make it relative to the buildRoot. If it cannot be done, the path is made absolute.

pure
string
normPath
(
const(char)[] buildRoot
,
const(char)[] taskDir
,
const(char)[] path
)

Parameters

buildRoot const(char)[]

The root directory of the build. Probably always the current working directory.

taskDir const(char)[]

The working directory of the task this is for. The path is normalized relative to this directory.

path const(char)[]

The path to be normalized.

Meta