public static function Helper::normalizeWindowsPath in Drupal 7
Fixes a path for windows-backslashes and reduces double-slashes to single slashes
Parameters
string $path File path to process:
Return value
string
3 calls to Helper::normalizeWindowsPath()
- Helper::getCanonicalPath in misc/
typo3/ phar-stream-wrapper/ src/ Helper.php - Resolves all dots, slashes and removes spaces after or before a path...
- Helper::normalizePath in misc/
typo3/ phar-stream-wrapper/ src/ Helper.php - Normalizes a path, removes phar:// prefix, fixes Windows directory separators. Result is without trailing slash.
- PharInvocationResolver::addBaseName in misc/
typo3/ phar-stream-wrapper/ src/ Resolver/ PharInvocationResolver.php
File
- misc/
typo3/ phar-stream-wrapper/ src/ Helper.php, line 109
Class
- Helper
- Helper provides low-level tools on file name resolving. However it does not (and should not) maintain any runtime state information. In order to resolve Phar archive paths according resolvers have to be used.
Namespace
TYPO3\PharStreamWrapperCode
public static function normalizeWindowsPath($path) {
return str_replace('\\', '/', $path);
}