From: soufiane Date: Wed, 29 Nov 2023 10:24:02 +0000 (+0100) Subject: wip #6527 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ad895ec80e7ceeaf828d3ad20dda7a8c076ec478;p=cubist_net.git wip #6527 --- diff --git a/src/Transfer/FTP.php b/src/Transfer/FTP.php index 472abe1..f24d406 100644 --- a/src/Transfer/FTP.php +++ b/src/Transfer/FTP.php @@ -22,7 +22,7 @@ class FTP extends Driver { $lftp = new LFTP(); $lftp->setServer($this->getServer()); $lftp->setSrc($source); - $lftp->setDest($dest); + $lftp->setDest(rtrim($this->getServer()->getBasePath(), '/') . '/' . trim($dest, '/') . '/'); $lftp->setMirror($mirror); $lftp->setDryRun($dryrun); $lftp->execute();