/** * Renames the node * * @param string $name The new name * @return void */ public function setName($name) { list($parentPath, ) = URLUtil::splitPath($this->path); list(, $newName) = URLUtil::splitPath($name); $newPath = $parentPath . '/' . $newName; Utils::renameObject($this->nodeId, $name); // rename($this->path,$newPath); $this->path = $newPath; }
public function setName($name) { Utils::renameObject($this->nodeId, $name); }