Kaydet (Commit) 221df249 authored tarafından Guido van Rossum's avatar Guido van Rossum

add splitdrive()

üst 971ee138
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment