Brian Moseley wrote:
void rename(Item item, String newName) {
  item.getSession().move(item.getPath(), item.getParent().getPath() +
"/" + newName);
}
ahh... that works for me. thanks.

Just a comment, it only works with nodes whose depth is higher than 1. If the depth is equal to 1 you have to remove the slash.

regards
edgar

Reply via email to