(path)
return full_path_split(rest) + (tail,)
Function to do a full split on a path.
Function to do a full split on a path.
Function to do a full split on a path .
def full_path_split(path):
    """
    Function to do a full split on a path.
    """
    # Based on http://stackoverflow.com/a/13505966/161801
    rest, tail = os.path.split(path)
    if not rest or rest == os.path.sep:
        return (tail,)
    return full_path_split(rest) + (tail,)
def full_path_split ( path ) : # Based on http://stackoverflow.com/a/13505966/161801 rest , tail = os . path . split ( path ) if not rest or rest == os . path . sep : return ( tail , ) return full_path_split ( rest ) + ( tail , )