Skip to content

[F] getRelativePathFromDirectory

Call Signature

function getRelativePathFromDirectory(
from,
to,
ignoreCase): string

Gets a relative path that can be used to traverse between from and to.

Parameters

ParameterType
fromstring
tostring
ignoreCaseboolean

Returns

string

Call Signature

function getRelativePathFromDirectory(
fromDirectory,
to,
getCanonicalFileName): string

Gets a relative path that can be used to traverse between from and to.

Parameters

ParameterType
fromDirectorystring
tostring
getCanonicalFileNameGetCanonicalFileName

Returns

string