41 trigger_error(
'Shorthand method "getCharsetConversion()" within the FAL driver method will be removed in TYPO3 v10.0, instantiate CharsetConverter yourself.', E_USER_DEPRECATED);
42 if (!isset($this->charsetConversion)) {
43 $this->charsetConversion = GeneralUtility::makeInstance(CharsetConverter::class);
57 return GeneralUtility::validPathStr($theFile);
73 if (!$this->
isPathValid($filePath) && strpos($filePath,
'vfs://') !== 0) {
74 throw new InvalidPathException(
'File ' . $filePath .
' is not valid (".." and "//" is not allowed in path).', 1320286857);
88 if ($fileIdentifier !==
'') {
90 $fileIdentifier =
'/' . ltrim($fileIdentifier,
'/');
92 $fileIdentifier = mb_strtolower($fileIdentifier,
'utf-8');
95 return $fileIdentifier;
106 if ($folderPath ===
'/') {
107 $canonicalizedIdentifier = $folderPath;
111 return $canonicalizedIdentifier;