March 2003
Intermediate to advanced
656 pages
39h 30m
English
split
split(path)Returns a pair of strings
(
dir,base
)
such that
join(
dir,base
)
equals path.
base is the last pathname component and
never contains a path separator. If path
ends in a separator, base is
''. dir is the leading
part of path, up to the last path
separator, shorn of trailing separators. For example,
os.path.split('a/b/c/d') returns the pair
('a/b/c','d').
Read now
Unlock full access