2 namespace TYPO3\CMS\Core\Resource\Driver;
31 return \TYPO3\CMS\Core\Utility\GeneralUtility::validPathStr($theFile);
43 $filePath = \TYPO3\CMS\Core\Utility\PathUtility::getCanonicalPath($filePath);
47 if (!$this->
isPathValid($filePath) && substr($filePath, 0, 6) !==
'vfs://') {
48 throw new \TYPO3\CMS\Core\Resource\Exception\InvalidPathException(
'File ' . $filePath .
' is not valid (".." and "//" is not allowed in path).', 1320286857);
62 if ($fileIdentifier !==
'') {
64 $fileIdentifier =
'/' . ltrim($fileIdentifier,
'/');
66 $fileIdentifier = strtolower($fileIdentifier);
69 return $fileIdentifier;
80 if ($folderPath ===
'/') {
81 $canonicalizedIdentifier = $folderPath;
85 return $canonicalizedIdentifier;
97 return \TYPO3\CMS\Core\Utility\PathUtility::dirname($fileIdentifier) .
'/';