]> _ Git - cubist_net.git/commitdiff
wip #5611
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 31 Mar 2023 11:53:22 +0000 (13:53 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 31 Mar 2023 11:53:22 +0000 (13:53 +0200)
src/Transfer/Driver.php
src/Transfer/Local.php

index 53c1d301c73cb525da4f273eeceeb7ab79b022f6..7381e8e6d486bf4b828406ab9cb5691b12658dba 100644 (file)
@@ -31,7 +31,7 @@ abstract class Driver {
                $this->_server = $server;
        }
 
-       protected static function _cleanInstallDir($path) {
+       public static function cleanInstallDir($path) {
                $path = str_replace('/\.{2,}/', '', $path);
                $path = preg_replace('/\/{2,}/', '/', $path);
                $path = trim($path, '/');
@@ -39,7 +39,7 @@ abstract class Driver {
        }
 
        protected function _destPath($path) {
-               return self::_cleanInstallDir($path);
+               return self::cleanInstallDir($path);
        }
 
        /**
index 56092e3a051a6640a533f8b8b66a0e747c744c9c..b0b1a30d3a517f8d3d61b26ec4cf4f3d2e64dff6 100644 (file)
@@ -33,7 +33,7 @@ class Local extends Driver {
         * @return string
         */
        protected function _destPath($path) {
-               return rtrim($this->getRootPath(), '/') . '/' . self::_cleanInstallDir($path) . '/';
+               return rtrim($this->getRootPath(), '/') . '/' . self::cleanInstallDir($path) . '/';
        }
 
        public function copy($source, $dest, $mirror = false, $dryrun = false) {