Perhaps `ExtractLeadingSegment(string targetPosixPath)`?