Message226436
Isn't this bug about the "root of a share" case with ntpath.isabs in 3.x and 2.7 (splitdrive was backported)? For example:
>>> os.path.isabs("//server/share")
False
>>> os.path.splitdrive('//server/share')
('//server/share', '')
vs.
>>> os.path.isabs('//server/share/')
True
>>> os.path.splitdrive('//server/share/')
('//server/share', '/')
I think '//server/share' is an absolute path, and pathlib agrees. Network shares do not maintain a current directory the way drives do (i.e. the hidden environment variable trick). There's no such thing as a share-relative path, nor would there be any way to even write such a path, as compared to "C:drive/relative/path". |
|
Date |
User |
Action |
Args |
2014-09-05 18:06:25 | eryksun | set | recipients:
+ eryksun, pitrou, serhiy.storchaka, steve.dower, akima |
2014-09-05 18:06:25 | eryksun | set | messageid: <1409940385.2.0.239215600598.issue22302@psf.upfronthosting.co.za> |
2014-09-05 18:06:25 | eryksun | link | issue22302 messages |
2014-09-05 18:06:24 | eryksun | create | |
|