Skip to content

format

typescript
PathManager.CalculateRelativeProjectPath(abs_path)

class: PathManager

description

Converts the given path to a relative path based on the project directory.

If the given path does not share the same root as the project path, the given path is returned.

parameter

param_nametypedescription
abs_pathstringThe absolute path.

return

typedescription
string|undefinedThe path relative to the project directory.

code example