src/DataHandling.php
public static function formatAndResolvePath($pathOrPaths, ...$additionalPaths)
    {
        $path = rawurldecode(self::mergePaths($pathOrPaths, ...$additionalPaths));
        $path = realpath($path);

        if (!$path) {
            throw new DataHandlingException("Given path does not exist.");
        }

        return self::formatPath($path);
    }
public static function formatAndResolvePath($pathOrPaths, ...$additionalPaths)
    {
        $path = rawurldecode(self::mergePaths($pathOrPaths, ...$additionalPaths));
        $path = realpath($path);

        if (!$path) {
            throw new DataHandlingException("Given path does not exist.");
        }

        return self::formatPath($path);
    }
public static function formatAndResolvePath ( $ pathOrPaths , ... $ additionalPaths ) { $ path = rawurldecode ( self :: mergePaths ( $ pathOrPaths , ... $ additionalPaths ) ) ; $ path = realpath ( $ path ) ; if ( ! $ path ) { throw new DataHandlingException ( "Given path does not exist." ) ; } return self :: formatPath ( $ path ) ; }
Resolves and formats a path.

@param string|string[] $pathOrPaths
@param string[] $additionalPaths
@return string
@throws DataHandlingException
Resolves and formats a path .