def _reactified(path):
    """
    assumes that path has forward slashes in it
    and no slash at the end
    """
    drive = None
    nodes = path.split('/')
    if nodes[0] != '':
        drive = nodes[0]
    direc = []
    nodes = nodes[1:]
    for node in nodes:
        if node == '.':
            continue
        elif node == '..':
            if len(direc) > 0:
                direc.pop()
            else:
                raise Exception('Cant go beyond base directory, arg: ' + path)
        else:
            direc.append(node)
    path = ''
    for item in direc:
        path = path + '/'
        path = path + item
    if drive:
        path = drive + path
    return path
