On a Posix system, initial doubled path separators are supposed to be significant and are kept by the Path() constructor (while in other locations they are consolidated.
>>> Path("//foo//bar") PosixPath('//foo/bar') #double slash retained
But on windows (where the double slash indicates a UNC path), this is lost.
>>> Path("//foo//bar") WindowsPath('/foo/bar') #double slash lost >>> Path(r"\\foo\\bar") WindowsPath('/foo/bar')
This has the effect of destroying the UNC path. Is this a known bug/limitation, or something else? I can manually construct either the PureWindowsPath or WindowsPath with the double slash and it works properly. But I would prefer to use the