]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add splitdrive()
authorGuido van Rossum <guido@python.org>
Mon, 7 Aug 1995 20:17:55 +0000 (20:17 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 7 Aug 1995 20:17:55 +0000 (20:17 +0000)
Lib/posixpath.py

index 73e380cec0dad42a63e84d285a9f685738cac10d..05cc92ae2f69b784fc569c7a9e8433413e1ba946 100644 (file)
@@ -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):