public static function translatePath($path)
{
if (is_array($path) == FALSE) {
$path = 0 === strpos($path, '/') ? $path : GeneralUtility::getFileAbsFileName($path);
if (is_dir($path) && substr($path, -1) !== '/') {
$path = $path . '/';
}
$path = GeneralUtility::fixWindowsFilePath($path);
} else {
foreach ($path as $key => $subPath) {
if (TRUE === in_array($key, self::$knownPathNames)) {
$path[$key] = self::translatePath($subPath);
}
}
}
return $path;
}