Title: splitdrive fails for UNC path with the "\\?\UNC\" prefix.
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.7
Status: closed Resolution: duplicate
Dependencies: Superseder: support "UNC" device paths in ntpath.splitdrive
View: 37609
Assigned To: Nosy List: qpeter
Priority: normal Keywords: patch

Created on 2020-10-27 14:09 by qpeter, last changed 2020-10-27 14:18 by eryksun. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 23001 closed qpeter, 2020-10-27 14:11
Messages (1)
msg379758 - (view) Author: Quentin Peter (qpeter) * Date: 2020-10-27 14:09
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]:
Date User Action Args
2020-10-27 14:18:18eryksunsetstatus: open -> closed
superseder: support "UNC" device paths in ntpath.splitdrive
resolution: duplicate
stage: patch review -> resolved
2020-10-27 14:11:30qpetersetkeywords: + patch
stage: patch review
pull_requests: + pull_request21916
2020-10-27 14:09:28qpetersetmessages: + msg379758
2020-10-27 14:09:04qpetercreate