Message226436
| Author |
eryksun |
| Recipients |
akima, eryksun, pitrou, serhiy.storchaka, steve.dower |
| Date |
2014年09月05日.18:06:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1409940385.2.0.239215600598.issue22302@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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". |
|