PathParser.parent

Returns a path representing the parent of this one. This will typically return the current path component, though with a special case where the name component is empty. In such cases, the path is scanned for a prior segment:

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

Note that this returns a path suitable for splitting into path and name components (there's no trailing separator).

struct PathParser(char_t = char)
@property inout
inout(char_t)[]
parent
()

Meta