2 namespace TYPO3\CMS\Install\FolderStructure;
17 use TYPO3\CMS\Install\Status;
76 $permission = substr($permission, 0, 4);
77 $permission = str_pad($permission, 4,
'0', STR_PAD_LEFT);
78 $this->targetPermission = $permission;
152 if ($result ===
true) {
160 '. This only is a problem if files and folders within this node cannot be written.'
191 return substr($permissions, -4);
201 if (TYPO3_OS ===
'WIN') {
216 if (is_null($path)) {
219 $pathSiteWithoutTrailingSlash = substr(PATH_site, 0, -1);
220 if (strpos($path, $pathSiteWithoutTrailingSlash, 0) !== 0) {
221 throw new Exception\InvalidArgumentException(
222 'PATH_site is not first part of given path',
226 $relativePath = substr($path, strlen($pathSiteWithoutTrailingSlash), strlen($path));
228 if ($relativePath ===
'') {
231 return $relativePath;