Construct a new path object from any number of path-like objects. Subclasses may override this method to customize how new path objects are created from methods like `iterdir()`.
pathlib/PurePath.with_segments
PurePath.with_segments