From 8fd1b7b37c92c49aa919854ea9d783a54e401057 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 2 Jun 2025 17:21:43 +0200 Subject: [PATCH] #7567 --- src/Transfer/Driver.php | 6 ++++++ src/Transfer/GCS.php | 2 ++ src/Transfer/S3.php | 2 ++ 3 files changed, 10 insertions(+) diff --git a/src/Transfer/Driver.php b/src/Transfer/Driver.php index ec7cd96..b27dd84 100644 --- a/src/Transfer/Driver.php +++ b/src/Transfer/Driver.php @@ -13,6 +13,7 @@ abstract class Driver */ protected $_server; public $checkConnection = true; + protected $_appendIndexToURL = false; public function __construct(IServer $server, $checkConnection = true) { @@ -72,4 +73,9 @@ abstract class Driver { return $this->synchronizeFiles($source, $dest); } + + public function appendIndexToURL(): bool + { + return $this->_appendIndexToURL; + } } diff --git a/src/Transfer/GCS.php b/src/Transfer/GCS.php index aaf44dd..ba6698f 100644 --- a/src/Transfer/GCS.php +++ b/src/Transfer/GCS.php @@ -11,6 +11,8 @@ class GCS extends Driver const ERROR_SERVER_CONNECTION = 6; const ERROR_SEND_FILE = 5; + protected $_appendIndexToURL = true; + /** * @return StorageClient */ diff --git a/src/Transfer/S3.php b/src/Transfer/S3.php index 5f97072..ea5d9f2 100644 --- a/src/Transfer/S3.php +++ b/src/Transfer/S3.php @@ -11,6 +11,8 @@ class S3 extends Driver const ERROR_SERVER_CONNECTION = 6; const ERROR_SEND_FILE = 5; + protected $_appendIndexToURL = true; + /** * @return S3Client */ -- 2.39.5