commit | 221df24940595eb9d99d598e39fd2967050bee11 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Aug 07 20:17:55 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Aug 07 20:17:55 1995 +0000 |
tree | 0f46cb4f4c0571824d40af6efc9d4c6f2e60e005 | |
parent | 971ee13835e15801bfb6625674d3d5a0a663fb3d [diff] [blame] |
add splitdrive()
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 73e380c..05cc92a 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py
@@ -74,6 +74,13 @@ 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):