diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 73e380cec0d..05cc92ae2f6 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -74,6 +74,13 @@ def splitext(p): return root, ext +# Split a pathname into a drive specification and the rest of the +# path. Useful on DOS/Windows/NT; on Unix, the drive is always empty. + +def splitdrive(p): + return '', p + + # Return the tail (basename) part of a path. def basename(p):