def split(path):
    """
    splits path into parent, child
    """
    if path == '/':
        return '/', None
    parent, child = path.rsplit('/', 1)
    if parent == '':
        parent = '/'
    return parent, child
