/** * Get the full path to a node, including the root path * * @see getRoot() * * @param Node $node * @return string **/ private function getNodePath(Node $node) { return $this->getRoot() . DIRECTORY_SEPARATOR . trim($node->getFullName(DIRECTORY_SEPARATOR), DIRECTORY_SEPARATOR); }