I am struggling to understand why in the python purepath library this holds:
>>> pathlib.PurePath("/root") == pathlib.PurePath("///root")
True
and this also:
>>> pathlib.PurePath("/root") == pathlib.PurePath("////root")
True
but this does not:
>>> pathlib.PurePath("/root") == pathlib.PurePath("//root")
False
What is the reasoning behind this and is there any way to change that behavior (which would ignoring multiple consecutive slashes and just replacing it by one slash)?