public function downloadFile($hostDetails, $sourceFilename, $destFilename) { // get a client $client = $this->getClient($this->st, $hostDetails); // attempt the upload return $client->downloadFile($sourceFilename, $destFilename); }