Skip to content

format

typescript
Path.GetRelativePath(relTo, path)

class: Path

description

Returns the relative path from the initial path to the target path.

parameter

param_nametypedescription
relTostringThe initial path.
pathstringThe target path.

return

typedescription
stringA string representing the relative path.

code example