diff --git a/src/Sftp.php b/src/Sftp.php index 534af57..5cb1741 100644 --- a/src/Sftp.php +++ b/src/Sftp.php @@ -84,7 +84,7 @@ public function download(string $remoteFilePath, string $localFilePath): bool throw new RuntimeException('Could not download a file. ' . self::ERROR_NOT_CONNECTED); } - return $this->sftp->get($localFilePath, $remoteFilePath); + return $this->sftp->get($remoteFilePath, $localFilePath); } /**