[top] / posixpath / split
split(p)
Split a pathname. Returns tuple "(head, tail)" where "tail" is everything after the final slash. Either part may be empty.