parent

Returns a path representing the parent of this one, with a special case concerning a trailing '/':

  • normal: /x/y/z => /x/y
  • normal: /x/y/ => /x/y
  • special: /x/y/ => /x
  • normal: /x => /
  • normal: / => empty

The result can be split via parse().

cstring
parent
(
cstring path
)

Meta