From: soufiane Date: Thu, 30 Nov 2023 14:22:26 +0000 (+0100) Subject: wait #6527 Modification commande sftp X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=633d12eeff195f31374aeebbe6387f038bcb22da;p=cubist_util.git wait #6527 Modification commande sftp --- diff --git a/src/CommandLine/LFTP.php b/src/CommandLine/LFTP.php index df0ee6f..7a103e8 100644 --- a/src/CommandLine/LFTP.php +++ b/src/CommandLine/LFTP.php @@ -67,9 +67,8 @@ class LFTP extends CloneUserpassProgram $mirrorCmd .= ' --dry-run'; } $commands[] = $mirrorCmd; - $this->setArg('u', $this->getUsername() . ',' . $this->getPassword().' '.$this->getHost()); - $this->setArg('p', $this->getPort()); - $this->setArg('e', implode(';', $commands)); + + $this->setArg('c', 'open ftp://'.$this->getUsername().':'.$this->getPassword().'@'.$this->getHost().':'.$this->getPort().' '.implode(';', $commands)); } /**