Created
September 18, 2025 13:50
-
-
Save garbast/586b0c209f1c1f597ae9e28fca1e48dc to your computer and use it in GitHub Desktop.
Get an absolute path for a local TYPO3 FAL file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private function absFilePath(File $file): string | |
| { | |
| $path = $file->getIdentifier(); | |
| $folder = $file->getStorage()->getConfiguration()['basePath']; | |
| return GeneralUtility::getFileAbsFileName(rtrim($folder, '/') . $path); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment