]> _ Git - cubist_net.git/commitdiff
#7567
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Jun 2025 15:21:43 +0000 (17:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Jun 2025 15:21:43 +0000 (17:21 +0200)
src/Transfer/Driver.php
src/Transfer/GCS.php
src/Transfer/S3.php

index ec7cd9603c4fd3973443de519fc65266745535c1..b27dd845283788dca76ead6f364242a9cc7df1d2 100644 (file)
@@ -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;
+    }
 }
index aaf44dddea1efa5f159096885e6bb35ccbaac43e..ba6698fe488838142c4741fc29d272e687075e6b 100644 (file)
@@ -11,6 +11,8 @@ class GCS extends Driver
     const ERROR_SERVER_CONNECTION = 6;
     const ERROR_SEND_FILE = 5;
 
+    protected $_appendIndexToURL = true;
+
     /**
      * @return StorageClient
      */
index 5f9707273c8f2c4f996c4802a090eac2ae713000..ea5d9f279a785040648ceeacafb97e5488ef3771 100644 (file)
@@ -11,6 +11,8 @@ class S3 extends Driver
     const ERROR_SERVER_CONNECTION = 6;
     const ERROR_SEND_FILE = 5;
 
+    protected $_appendIndexToURL = true;
+
     /**
      * @return S3Client
      */