From 633d12eeff195f31374aeebbe6387f038bcb22da Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 30 Nov 2023 15:22:26 +0100 Subject: [PATCH] wait #6527 Modification commande sftp --- src/CommandLine/LFTP.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)); } /** -- 2.39.5