Skip to main content
Version: Next 🚧

[F] getRelativePathFromDirectory

getRelativePathFromDirectory(from, to, ignoreCase)

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

getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileName)

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