2 namespace TYPO3\CMS\Install\FolderStructure;
17 use TYPO3\CMS\Install\Status;
35 throw new Exception\RootNodeException(
36 'Root node must not have parent',
41 if (!isset($structure[
'name'])
42 || ($this->
isWindowsOs() && substr($structure[
'name'], 1, 2) !==
':/')
43 || (!$this->
isWindowsOs() && $structure[
'name'][0] !==
'/')
45 throw new Exception\InvalidArgumentException(
46 'Root node expects absolute path as name',
50 $this->name = $structure[
'name'];
52 if (isset($structure[
'targetPermission'])) {
56 if (array_key_exists(
'children', $structure)) {
57 $this->createChildren($structure[
'children']);
76 $result = array_merge($result, $this->getChildrenStatus());