We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebe545 commit 2927afeCopy full SHA for 2927afe
Doc/library/os.path.rst
@@ -509,14 +509,14 @@ the :mod:`glob` module.)
509
name. The *root* may be empty, a forward slash, or a backward slash. For
510
example::
511
512
+ >>> splitroot('Windows/notepad')
513
+ ('', '', 'Windows/notepad')
514
>>> splitroot('C:/Users/Barney')
515
('C:', '/', 'Users/Barney')
516
>>> splitroot('//server/share/')
517
('//server/share', '/', '')
518
>>> splitroot('//?/Volume{12345678-1234-1234-1234-123456781234}/')
519
('//?/Volume{12345678-1234-1234-1234-123456781234}', '/', '')
- >>> splitroot('Windows/notepad')
- ('', '', 'Windows/notepad')
520
521
In all cases, ``drive + root + tail`` will be the same as *path*.
522
0 commit comments