(path, result=None)
return fullsplit(head, [tail] + result)
Split a pathname into components (the opposite of os.path.join) in a
    platform-neutral way.
Split a pathname into components (the opposite of os.path.join) in a
    platform-neutral way.
Split a pathname into components ( the opposite of os . path . join ) in a platform - neutral way .
def fullsplit(path, result=None):
    """
    Split a pathname into components (the opposite of os.path.join) in a
    platform-neutral way.
    """
    if result is None:
        result = []
    head, tail = os.path.split(path)
    if head == '':
        return [tail] + result
    if head == path:
        return result
    return fullsplit(head, [tail] + result)
def fullsplit ( path , result = None ) : if result is None : result = [ ] head , tail = os . path . split ( path ) if head == '' : return [ tail ] + result if head == path : return result return fullsplit ( head , [ tail ] + result )