isPathActive()function

isPathActive(target: AbsolutePath, current: AbsolutePath): boolean
ParamType
targetAbsolutePath
Path whose status to test. required
currentAbsolutePath
Current path to test against. required
Return
boolean
true if target is exactly current.

Is a target path active relative to the current path?

  • Active means target and current are exactly the same path.

Examples

isPathActive("/a", "/a") // true