]> _ Git - cubist_net.git/commitdiff
wip #5700
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 26 Jan 2023 14:47:40 +0000 (15:47 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 26 Jan 2023 14:47:40 +0000 (15:47 +0100)
src/Transfer/Local.php

index bd475937f1aa39059c4f5e3ce7481a5b8712db5b..3bab3cfe693630410d739df4cdc34ff9a2f8f57a 100644 (file)
@@ -5,6 +5,13 @@ namespace Cubist\Net\Transfer;
 class Local extends Driver {
        protected $_basePath = '';
 
+       public function __construct(IServer $server, $basePath = null) {
+               parent::__construct($server);
+               if (null !== $basePath) {
+                       $this->setBasePath($basePath);
+               }
+       }
+
        /**
         * @param string $basePath
         */