Message376326
This behavior is due to issue 37609, i.e. ntpath.splitdrive fails for "UNC" device paths.
>>> ntpath.splitdrive('//?/UNC/server/share')
('//?/UNC', '/server/share')
The result should be "//?/UNC/server/share". A path on the "UNC" device requires a share component, on which is mounted a local or remote filesystem directory. It's functionally part of the 'drive' path. Using just the root path or a server path on the "UNC" device is malformed in the context of a normal file API open. The former fails as ERROR_INVALID_NAME (123), and the latter fails as ERROR_BAD_PATHNAME (161).
The incorrect splitdrive result in turn makes ntpath.split misbehave:
>>> ntpath.split('//?/UNC/server/share')
('//?/UNC/server', 'share')
>>> ntpath.split('//?/UNC/server')
('//?/UNC/', 'server')
The correct result should be ('//?/UNC/server/share', ''). |
|
Date |
User |
Action |
Args |
2020-09-03 22:01:32 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Safihre |
2020-09-03 22:01:32 | eryksun | set | messageid: <1599170492.77.0.170686626802.issue41705@roundup.psfhosted.org> |
2020-09-03 22:01:32 | eryksun | link | issue41705 messages |
2020-09-03 22:01:32 | eryksun | create | |
|