X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/nette/utils/src/Utils
home
/
prisjneg
/
public_html
/
vendor
/
nette
/
utils
/
src
/
Utils
/
📁
..
📄
ArrayHash.php
(1.86 KB)
📄
ArrayList.php
(2.61 KB)
📄
Arrays.php
(13.59 KB)
📄
Callback.php
(3.5 KB)
📄
DateTime.php
(5.12 KB)
📄
FileInfo.php
(1.26 KB)
📄
FileSystem.php
(9.48 KB)
📄
Finder.php
(13.04 KB)
📄
Floats.php
(2.07 KB)
📄
Helpers.php
(2.56 KB)
📄
Html.php
(19.03 KB)
📄
Image.php
(23.54 KB)
📄
ImageColor.php
(1.6 KB)
📄
ImageType.php
(421 B)
📄
Iterables.php
(5.64 KB)
📄
Json.php
(2.22 KB)
📄
ObjectHelpers.php
(6.85 KB)
📄
Paginator.php
(4.38 KB)
📄
Random.php
(1.2 KB)
📄
Reflection.php
(8.47 KB)
📄
ReflectionMethod.php
(812 B)
📄
Strings.php
(22.41 KB)
📄
Type.php
(6.36 KB)
📄
Validators.php
(10.41 KB)
📄
exceptions.php
(760 B)
Editing: 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 Nette\Utils; use Nette; /** * Represents the file or directory returned by the Finder. * @internal do not create instances directly */ 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; } /** * 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); } }
Upload File
Create Folder