Skip to content

Commit

Permalink
Merge pull request #1 from sandeshjangam/fix-download-file
Browse files Browse the repository at this point in the history
Fixed the download file SFTP method by changing the invalid path
  • Loading branch information
sandeshjangam authored Dec 4, 2024
2 parents 9c53f7e + bedbbab commit 6e976ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 6e976ad

Please sign in to comment.