Function
posixpath.split

Signature

split(p)

Documentation String

Split a pathname. Returns tuple "(head, tail)" where "tail" is everything after the final slash. Either part may be empty.