Lines Matching refs:tail
203 # Split a path in head (everything up to the last '/') and tail (the
205 # join(head, tail) == p holds.
211 Return tuple (head, tail) where tail is everything after the final slash.
220 head, tail = p[:i], p[i:] # now tail has no slashes
223 return d + head, tail
240 # Return the tail (basename) part of a path.
647 tail = path[:0]
651 return join(path, tail) if tail else path
657 # to follow the link ourselves. If we succeed, join the tail
661 return join(new_path, tail) if tail else new_path
670 return path + tail
671 tail = join(name, tail) if tail else name
672 return tail