<?php
declare(strict_types=1);
namespace Nette\Utils;
use Nette;
final class FileInfo extends \SplFileInfo
{
private string $relativePath;
public function __construct(string $file, string $relativePath = '')
{
parent::__construct($file);
$this->setInfoClass(static::class);
$this->relativePath = $relativePath;
}
public function getRelativePath(): string
{
return $this->relativePath;
}
public function getRelativePathname(): string
{