-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better support for xml to xlf converting #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the comments, +1
} | ||
$parent = $splFileInfo->getPathInfo(); | ||
if($parent->isDir() === false) { | ||
if (@mkdir($parent->getPathname(), 0777, true) === false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use GeneralUtility::mkdir_deep() to apply TYPO3s Permission Settings
throw new Exception('cannot create directory ' . $parent->getPathname(), 1476776272); | ||
} | ||
} | ||
if (@copy($xmlPath, $splFileInfo->getPathname()) === false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GeneralUtility::copyDirectory()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
s. #4