Files
pterodactyl-panel/app/Contracts/Files/ReadsFileContents.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

22 lines
626 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Files;
use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException;
use Pterodactyl\Exceptions\Http\Server\FileSizeTooLargeException;
use Pterodactyl\Models\Server;
interface ReadsFileContents
{
/**
* Read a server file through Wings. The read is always bounded: without an
* explicit limit the panel's configured maximum editable file size applies.
*
* @throws FileSizeTooLargeException
* @throws DaemonConnectionException
*/
public function read(Server $server, string $path, ?int $maxBytes = null): string;
}