lib/private/Files/Storage/Wrapper/Encoding.php
/**
	 * Checks whether the given path exists in NFC or NFD form after checking
	 * each form for each path section and returns the correct form.
	 * If no existing path found, returns the path as it was given.
	 *
	 * @param string $fullPath path to check
	 *
	 * @return string original or converted path
	 */
Checks whether the given path exists in NFC or NFD form after checking
each form for each path section and returns the correct form.
If no existing path found, returns the path as it was given.

@param string $fullPath path to check

@return string original or converted path
Checks whether the given path exists in NFC or NFD form after checking each form for each path section and returns the correct form . If no existing path found returns the path as it was given . @param string $fullPath path to check @return string original or converted path
private function findPathToUse($fullPath) {
		$cachedPath = $this->namesCache[$fullPath];
		if ($cachedPath !== null) {
			return $cachedPath;
		}
		$sections = explode('/', $fullPath);
		$path = '';
		foreach ($sections as $section) {
			$convertedPath = $this->findPathToUseLastSection($path, $section);
			if ($convertedPath === null) {
				return $fullPath;
			}
			$path = $convertedPath . '/';
		}
		$path = rtrim($path, '/');
		return $path;
	}
private function findPathToUse ( $ fullPath ) { $ cachedPath = $ this -> namesCache [ $ fullPath ] ; if ( $ cachedPath !== null ) { return $ cachedPath ; } $ sections = explode ( '/' , $ fullPath ) ; $ path = '' ; foreach ( $ sections as $ section ) { $ convertedPath = $ this -> findPathToUseLastSection ( $ path , $ section ) ; if ( $ convertedPath === null ) { return $ fullPath ; } $ path = $ convertedPath . '/' ; } $ path = rtrim ( $ path , '/' ) ; return $ path ; }
Checks whether the given path exists in NFC or NFD form after checking
 each form for each path section and returns the correct form.
Checks whether the given path exists in NFC or NFD form after checking each form for each path section and returns the correct form .
// no point in continuing if the section was not found, use original path