From 221df24940595eb9d99d598e39fd2967050bee11 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 7 Aug 1995 20:17:55 +0000 Subject: [PATCH] add splitdrive() --- Lib/posixpath.py | 7 +++++++ 1 file changed, 7 insertions(+) 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):