Returns a NoNullStr that consists of the segment before the last '/'.
NoNullStr
impl NoNullStr { fn dir(&self) -> &NoNullStr }