[issue42170] splitdrive fails for UNC path with the "\\?\UNC\" prefix.

Quentin Peter report at bugs.python.org
Tue Oct 27 10:09:28 EDT 2020


New submission from Quentin Peter <qpeter at bluewin.ch>:

Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 7.18.1 -- An enhanced Interactive Python.

In [1]: import os.path

In [2]: os.path.splitdrive(r"\\machine\mountpoint\directory")
Out[2]: ('\\\\machine\\mountpoint', '\\directory')

In [3]: os.path.splitdrive(r"\\?\UNC\machine\mountpoint\directory")
Out[3]: ('\\\\?\\UNC', '\\machine\\mountpoint\\directory')

In [4]:

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42170>
_______________________________________


More information about the Python-bugs-list mailing list