mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
22 lines
521 B
PHP
22 lines
521 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Actions\Files;
|
|
|
|
use Pterodactyl\Contracts\Files\CompressesFiles;
|
|
use Pterodactyl\Facades\Daemon;
|
|
use Pterodactyl\Models\Server;
|
|
|
|
final readonly class CompressFiles implements CompressesFiles
|
|
{
|
|
/**
|
|
* @param array<array-key, ApiValue9> $files
|
|
* @return DaemonFileObject
|
|
*/
|
|
public function compress(Server $server, ?string $root, array $files): array
|
|
{
|
|
return Daemon::server($server)->files()->compressFiles($root, $files);
|
|
}
|
|
}
|