mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
add splitdrive()
This commit is contained in:
parent
971ee13835
commit
221df24940
1 changed files with 7 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue