Add archive extension selection (#1828)

This commit is contained in:
Charles
2025-10-24 12:39:30 -04:00
committed by GitHub
parent 8e006ac32d
commit e6bd6e416f
5 changed files with 46 additions and 12 deletions

View File

@@ -153,7 +153,7 @@ class DaemonFileRepository extends DaemonRepository
*
* @throws ConnectionException
*/
public function compressFiles(?string $root, array $files, ?string $name): array
public function compressFiles(?string $root, array $files, ?string $name, ?string $extension): array
{
return $this->getHttpClient()
// Wait for up to 15 minutes for the archive to be completed when calling this endpoint
@@ -164,6 +164,7 @@ class DaemonFileRepository extends DaemonRepository
'root' => $root ?? '/',
'files' => $files,
'name' => $name ?? '',
'extension' => $extension ?? '',
]
)->json();
}