isPathProud()function
isPathProud(target: AbsolutePath, current: AbsolutePath): boolean
| Param | Type | |
|---|---|---|
target | AbsolutePath | Path whose status to test. required |
current | AbsolutePath | 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
targetis the current path, or is an ancestor of the current path.
Examples
isPathProud("/a", "/a/b") // true