def pathsplit(path):
    result = []
    (head, tail) = _os.path.split(path)

    if (not head) or (head == path):
        # No file separator. Done.
        pass

    else:
        result = pathsplit(head)

    if tail:
        result += [tail]

    return result
Split a path into an array of path components, using the file separator
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/grizzled/grizzled/file/__init__.py/pathsplit