Sets the given node to the given path.
Source
void setNode(String path, SimpleNode node, {bool registerChildren: false}) {
  if (path == '/' || !path.startsWith('/')) return null;
  Path p = new Path(path);
  SimpleNode pnode = getNode(p.parentPath);
  nodes[path] = node;
  node.onCreated();
  if (pnode != null) {
    pnode.children[p.name] = node;
    pnode.onChildAdded(p.name, node);
    pnode.updateList(p.name);
  }
  if (registerChildren) {
    for (SimpleNode c in node.children.values) {
      setNode(c.path, c);
    }
  }
}