isPathProud()function

isPathProud(target: AbsolutePath, current: AbsolutePath): boolean
ParamType
targetAbsolutePath
Path whose status to test. required
currentAbsolutePath
Current path to test against. required
Return
boolean
true if current is target or a descendant of target.

Is a target path proud relative to the current path?

  • Proud means target is the current path, or is an ancestor of the current path.

Examples

isPathProud("/a", "/a/b") // true