Skip to content

[F] getRelativePathFromDirectory

function getRelativePathFromDirectory(
from,
to,
ignoreCase): string;

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

ParameterType
fromstring
tostring
ignoreCaseboolean

string

function getRelativePathFromDirectory(
fromDirectory,
to,
getCanonicalFileName): string;

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

ParameterType
fromDirectorystring
tostring
getCanonicalFileNameGetCanonicalFileName

string