pop

Returns a path representing the parent of this one:

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

The result can be split via parse().

cstring
pop
(
cstring path
)

Meta