Returns a prefix of this path, where the last segment has been dropped.
An Exception is thrown if this path has no parent path. Use hasParentPath to test this upfront.
See Implementation
Returns a prefix of this path, where the last segment has been dropped.