protected function getFullPath($contextPath, $targetPath): string
    {
        if ($this->filesystem->isAbsolutePath($targetPath)) {
            return $targetPath;
        }

        return rtrim($contextPath, '/\\').DIRECTORY_SEPARATOR.$targetPath;
    }
protected function getFullPath($contextPath, $targetPath): string
    {
        if ($this->filesystem->isAbsolutePath($targetPath)) {
            return $targetPath;
        }

        return rtrim($contextPath, '/\\').DIRECTORY_SEPARATOR.$targetPath;
    }
protected function getFullPath ( $ contextPath , $ targetPath ) : string { if ( $ this -> filesystem -> isAbsolutePath ( $ targetPath ) ) { return $ targetPath ; } return rtrim ( $ contextPath , '/\\' ) . DIRECTORY_SEPARATOR . $ targetPath ; }
Converts a relative file path to a full path

@param string $contextPath A directory path from where the relative path is given
@param string $targetPath The relative path
@return string The full path
Converts a relative file path to a full path