Name
splitdrive
Synopsis
splitdrive(path
)
Returns a pair of strings
(
drv
,pth
)
such that
drv
+
pth
equals path
.
drv
is either a drive specification or
''. drv
is always
'' on platforms that do not support drive
specifications, such as Unix. For example, on Windows,
os.path.splitdrive('c:d/e')
returns the pair
('c:','d/e')
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.