AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.192
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/nette/utils/src/Utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/nette/utils/src/Utils/FileInfo.php
<?php

/**
 * This file is part of the Nette Framework (https://nette.org)
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 */
declare (strict_types=1);
namespace RectorPrefix202411\Nette\Utils;

use RectorPrefix202411\Nette;
/**
 * Represents the file or directory returned by the Finder.
 * @internal do not create instances directly
 */
final class FileInfo extends \SplFileInfo
{
    /**
     * @var string
     */
    private $relativePath;
    public function __construct(string $file, string $relativePath = '')
    {
        parent::__construct($file);
        $this->setInfoClass(static::class);
        $this->relativePath = $relativePath;
    }
    /**
     * Returns the relative directory path.
     */
    public function getRelativePath() : string
    {
        return $this->relativePath;
    }
    /**
     * Returns the relative path including file name.
     */
    public function getRelativePathname() : string
    {
        return ($this->relativePath === '' ? '' : $this->relativePath . \DIRECTORY_SEPARATOR) . $this->getBasename();
    }
    /**
     * Returns the contents of the file.
     * @throws Nette\IOException
     */
    public function read() : string
    {
        return FileSystem::read($this->getPathname());
    }
    /**
     * Writes the contents to the file.
     * @throws Nette\IOException
     */
    public function write(string $content) : void
    {
        FileSystem::write($this->getPathname(), $content);
    }
}

Anon7 - 2022
AnonSec Team